<!DOCTYPE html>
<!-- saved from url=(0057)https://blog.csdn.net/lghuntfor/article/details/102529170 -->
<html lang="zh-CN"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    
    <link rel="canonical" href="https://blog.csdn.net/lghuntfor/article/details/102529170">
    
    <meta name="renderer" content="webkit">
    <meta name="force-rendering" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <meta name="report" content="{&quot;pid&quot;: &quot;blog&quot;, &quot;spm&quot;:&quot;1001.2101&quot;}">
    <meta name="referrer" content="always">
    <meta http-equiv="Cache-Control" content="no-siteapp"><link rel="alternate" media="handheld" href="https://blog.csdn.net/lghuntfor/article/details/102529170#">
    <meta name="shenma-site-verification" content="5a59773ab8077d4a62bf469ab966a63b_1497598848">
    <meta name="applicable-device" content="pc">
    <link href="https://g.csdnimg.cn/static/logo/favicon32.ico" rel="shortcut icon" type="image/x-icon">
    <title>Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置</title>
    <script src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/f(4).txt"></script><script type="text/javascript" async="" src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/auto_dup"></script><script type="text/javascript" charset="utf-8" async="" src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/apiaccept"></script><script src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/f(5).txt" id="google_shimpl"></script><script src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/push.js.下载"></script><script type="text/javascript" async="" src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/saved_resource"></script><script src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/hm.js.下载"></script><script src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/push.js(1).下载" id="ttzz"></script><script>
      (function(){ 
        var el = document.createElement("script"); 
        el.src = "https://s3a.pstatp.com/toutiao/push.js?1abfa13dfe74d72d41d83c86d240de427e7cac50c51ead53b2e79d40c7952a23ed7716d05b4a0f683a653eab3e214672511de2457e74e99286eb2c33f4428830"; 
        el.id = "ttzz"; 
        var s = document.getElementsByTagName("script")[0]; 
        s.parentNode.insertBefore(el, s);
      })(window)
    </script>
        <meta name="keywords" content="redis混合持久化配置">
        <meta name="csdn-baidu-search" content="{&quot;autorun&quot;:true,&quot;install&quot;:true,&quot;keyword&quot;:&quot;redis混合持久化配置&quot;}">
    <meta name="description" content="一：安装官网选择对应版本并下载软件包(这里选择 5.0.5版本)su dev #应用安装尽量不要使用root账号wget http://download.redis.io/releases/redis-5.0.5.tar.gzcd redis-5.0.5make #编译，若缺少软件，按提示yum安装即可, 编译好后对应文件会放入当前src目录cd srcmake install P...">
    <script src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/blog.js.下载" type="text/javascript"></script>
        <link rel="stylesheet" type="text/css" href="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/detail_enter-ec789632bc.min.css">
    <style>
        #content_views pre{
            -webkit-touch-callout: none;
            -webkit-user-select: none;
            -khtml-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none; 
            user-select: none; 
        }
        #content_views pre code{
            -webkit-touch-callout: none;
            -webkit-user-select: none;
            -khtml-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none; 
            user-select: none; 
        }
    </style>
    <script type="application/ld+json">{"@context":"https://ziyuan.baidu.com/contexts/cambrian.jsonld","@id":"https://blog.csdn.net/lghuntfor/article/details/102529170","appid":"1638831770136827","pubDate":"2019-10-13T02:16:49","title":"Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置","upDate":"2019-10-13T02:25:59"}</script>
        <link rel="stylesheet" type="text/css" href="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/skin3-template-45808e735f.min.css">
    <script src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/jquery-1.9.1.min.js.下载" type="text/javascript"></script>
    <script type="text/javascript">
        var isCorporate = false;//注释删除enterprise
        var username =  "lghuntfor";
        var skinImg = "white";
        var blog_address = "https://blog.csdn.net/lghuntfor";
        var currentUserName = "";
        var isOwner = false;
        var loginUrl = "http://passport.csdn.net/account/login?from=https://blog.csdn.net/lghuntfor/article/details/102529170";
        var blogUrl = "https://blog.csdn.net/";
        var avatar = "https://profile.csdnimg.cn/1/5/3/3_lghuntfor";
        var articleTitle = "Redis安装与配置(混合持久化)";
        var articleDesc = "一：安装官网选择对应版本并下载软件包(这里选择 5.0.5版本)su dev #应用安装尽量不要使用root账号wget http://download.redis.io/releases/redis-5.0.5.tar.gzcd redis-5.0.5make #编译，若缺少软件，按提示yum安装即可, 编译好后对应文件会放入当前src目录cd srcmake install P...";
        var articleTitles = "Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置";
        var nickName = "lghuntfor";
        var articleDetailUrl = "https://blog.csdn.net/lghuntfor/article/details/102529170";
        if(window.location.host.split('.').length == 3) {
            blog_address = blogUrl + username;
        }
        var skinStatus = "White";
        var blogStaticHost = "https://csdnimg.cn/release/blogv2/"
    </script>
    <script src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/saved_resource(1)" type="text/javascript"></script>
    <script src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/report.js.下载" type="text/javascript"></script>
    <link rel="stylesheet" type="text/css" href="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/sandalstrap.min.css">
    <style>
        .MathJax, .MathJax_Message, .MathJax_Preview{
            display: none
        }
    </style>
    <script src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/ds.js.下载"></script>
<link rel="stylesheet" type="text/css" href="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/csdn-toolbar-default.css"><link rel="stylesheet" type="text/css" href="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/user-login.css"><link rel="stylesheet" type="text/css" href="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/collection-box.css"><link rel="stylesheet" type="text/css" href="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/user-tooltip.css"><link rel="stylesheet" type="text/css" href="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/user-medal.css"><meta http-equiv="origin-trial" content="AxujKG9INjsZ8/gUq8+dTruNvk7RjZQ1oFhhgQbcTJKDnZfbzSTE81wvC2Hzaf3TW4avA76LTZEMdiedF1vIbA4AAABueyJvcmlnaW4iOiJodHRwczovL2ltYXNkay5nb29nbGVhcGlzLmNvbTo0NDMiLCJmZWF0dXJlIjoiVHJ1c3RUb2tlbnMiLCJleHBpcnkiOjE2NTI3NzQ0MDAsImlzVGhpcmRQYXJ0eSI6dHJ1ZX0="><meta http-equiv="origin-trial" content="Azuce85ORtSnWe1MZDTv68qpaW3iHyfL9YbLRy0cwcCZwVnePnOmkUJlG8HGikmOwhZU22dElCcfrfX2HhrBPAkAAAB7eyJvcmlnaW4iOiJodHRwczovL2RvdWJsZWNsaWNrLm5ldDo0NDMiLCJmZWF0dXJlIjoiVHJ1c3RUb2tlbnMiLCJleHBpcnkiOjE2NTI3NzQ0MDAsImlzU3ViZG9tYWluIjp0cnVlLCJpc1RoaXJkUGFydHkiOnRydWV9"><meta http-equiv="origin-trial" content="A16nvcdeoOAqrJcmjLRpl1I6f3McDD8EfofAYTt/P/H4/AWwB99nxiPp6kA0fXoiZav908Z8etuL16laFPUdfQsAAACBeyJvcmlnaW4iOiJodHRwczovL2dvb2dsZXRhZ3NlcnZpY2VzLmNvbTo0NDMiLCJmZWF0dXJlIjoiVHJ1c3RUb2tlbnMiLCJleHBpcnkiOjE2NTI3NzQ0MDAsImlzU3ViZG9tYWluIjp0cnVlLCJpc1RoaXJkUGFydHkiOnRydWV9"><meta http-equiv="origin-trial" content="AxBHdr0J44vFBQtZUqX9sjiqf5yWZ/OcHRcRMN3H9TH+t90V/j3ENW6C8+igBZFXMJ7G3Pr8Dd13632aLng42wgAAACBeyJvcmlnaW4iOiJodHRwczovL2dvb2dsZXN5bmRpY2F0aW9uLmNvbTo0NDMiLCJmZWF0dXJlIjoiVHJ1c3RUb2tlbnMiLCJleHBpcnkiOjE2NTI3NzQ0MDAsImlzU3ViZG9tYWluIjp0cnVlLCJpc1RoaXJkUGFydHkiOnRydWV9"><meta http-equiv="origin-trial" content="A88BWHFjcawUfKU3lIejLoryXoyjooBXLgWmGh+hNcqMK44cugvsI5YZbNarYvi3roc1fYbHA1AVbhAtuHZflgEAAAB2eyJvcmlnaW4iOiJodHRwczovL2dvb2dsZS5jb206NDQzIiwiZmVhdHVyZSI6IlRydXN0VG9rZW5zIiwiZXhwaXJ5IjoxNjUyNzc0NDAwLCJpc1N1YmRvbWFpbiI6dHJ1ZSwiaXNUaGlyZFBhcnR5Ijp0cnVlfQ=="><meta http-equiv="origin-trial" content="A/OOU4XAFfeAV4kM4+W9WBwNAHqq/bvtrRcJ1wpnNyO/i076BSUy1d14l2kBEgVmEuvxojSpD23172C6hBg2AQYAAACWeyJvcmlnaW4iOiJodHRwczovL2RvdWJsZWNsaWNrLm5ldDo0NDMiLCJmZWF0dXJlIjoiQ29udmVyc2lvbk1lYXN1cmVtZW50IiwiZXhwaXJ5IjoxNjM0MDgzMTk5LCJpc1N1YmRvbWFpbiI6dHJ1ZSwiaXNUaGlyZFBhcnR5Ijp0cnVlLCJ1c2FnZSI6InN1YnNldCJ9"><meta http-equiv="origin-trial" content="AwrB+XVH/KV6HfZNVtSEqlUJi3yUbtCp0/TJRj+38NDIw19/9P1h7ECTtdLdhIzG0Bsl4n/0rVmttJtGUCcewgAAAACceyJvcmlnaW4iOiJodHRwczovL2dvb2dsZXN5bmRpY2F0aW9uLmNvbTo0NDMiLCJmZWF0dXJlIjoiQ29udmVyc2lvbk1lYXN1cmVtZW50IiwiZXhwaXJ5IjoxNjM0MDgzMTk5LCJpc1N1YmRvbWFpbiI6dHJ1ZSwiaXNUaGlyZFBhcnR5Ijp0cnVlLCJ1c2FnZSI6InN1YnNldCJ9"><meta http-equiv="origin-trial" content="Ax15QOERqai2A5XWrDY38Eg07xh2T0pkhpDPJuDlxr7D2Ka8wHvklgK7tTPZOnT+8H31lwHto5JpvYV8jRn1WgIAAACceyJvcmlnaW4iOiJodHRwczovL2dvb2dsZXRhZ3NlcnZpY2VzLmNvbTo0NDMiLCJmZWF0dXJlIjoiQ29udmVyc2lvbk1lYXN1cmVtZW50IiwiZXhwaXJ5IjoxNjM0MDgzMTk5LCJpc1N1YmRvbWFpbiI6dHJ1ZSwiaXNUaGlyZFBhcnR5Ijp0cnVlLCJ1c2FnZSI6InN1YnNldCJ9"><meta http-equiv="origin-trial" content="AxujKG9INjsZ8/gUq8+dTruNvk7RjZQ1oFhhgQbcTJKDnZfbzSTE81wvC2Hzaf3TW4avA76LTZEMdiedF1vIbA4AAABueyJvcmlnaW4iOiJodHRwczovL2ltYXNkay5nb29nbGVhcGlzLmNvbTo0NDMiLCJmZWF0dXJlIjoiVHJ1c3RUb2tlbnMiLCJleHBpcnkiOjE2NTI3NzQ0MDAsImlzVGhpcmRQYXJ0eSI6dHJ1ZX0="><meta http-equiv="origin-trial" content="Azuce85ORtSnWe1MZDTv68qpaW3iHyfL9YbLRy0cwcCZwVnePnOmkUJlG8HGikmOwhZU22dElCcfrfX2HhrBPAkAAAB7eyJvcmlnaW4iOiJodHRwczovL2RvdWJsZWNsaWNrLm5ldDo0NDMiLCJmZWF0dXJlIjoiVHJ1c3RUb2tlbnMiLCJleHBpcnkiOjE2NTI3NzQ0MDAsImlzU3ViZG9tYWluIjp0cnVlLCJpc1RoaXJkUGFydHkiOnRydWV9"><meta http-equiv="origin-trial" content="A16nvcdeoOAqrJcmjLRpl1I6f3McDD8EfofAYTt/P/H4/AWwB99nxiPp6kA0fXoiZav908Z8etuL16laFPUdfQsAAACBeyJvcmlnaW4iOiJodHRwczovL2dvb2dsZXRhZ3NlcnZpY2VzLmNvbTo0NDMiLCJmZWF0dXJlIjoiVHJ1c3RUb2tlbnMiLCJleHBpcnkiOjE2NTI3NzQ0MDAsImlzU3ViZG9tYWluIjp0cnVlLCJpc1RoaXJkUGFydHkiOnRydWV9"><meta http-equiv="origin-trial" content="AxBHdr0J44vFBQtZUqX9sjiqf5yWZ/OcHRcRMN3H9TH+t90V/j3ENW6C8+igBZFXMJ7G3Pr8Dd13632aLng42wgAAACBeyJvcmlnaW4iOiJodHRwczovL2dvb2dsZXN5bmRpY2F0aW9uLmNvbTo0NDMiLCJmZWF0dXJlIjoiVHJ1c3RUb2tlbnMiLCJleHBpcnkiOjE2NTI3NzQ0MDAsImlzU3ViZG9tYWluIjp0cnVlLCJpc1RoaXJkUGFydHkiOnRydWV9"><meta http-equiv="origin-trial" content="A88BWHFjcawUfKU3lIejLoryXoyjooBXLgWmGh+hNcqMK44cugvsI5YZbNarYvi3roc1fYbHA1AVbhAtuHZflgEAAAB2eyJvcmlnaW4iOiJodHRwczovL2dvb2dsZS5jb206NDQzIiwiZmVhdHVyZSI6IlRydXN0VG9rZW5zIiwiZXhwaXJ5IjoxNjUyNzc0NDAwLCJpc1N1YmRvbWFpbiI6dHJ1ZSwiaXNUaGlyZFBhcnR5Ijp0cnVlfQ=="><meta http-equiv="origin-trial" content="A/OOU4XAFfeAV4kM4+W9WBwNAHqq/bvtrRcJ1wpnNyO/i076BSUy1d14l2kBEgVmEuvxojSpD23172C6hBg2AQYAAACWeyJvcmlnaW4iOiJodHRwczovL2RvdWJsZWNsaWNrLm5ldDo0NDMiLCJmZWF0dXJlIjoiQ29udmVyc2lvbk1lYXN1cmVtZW50IiwiZXhwaXJ5IjoxNjM0MDgzMTk5LCJpc1N1YmRvbWFpbiI6dHJ1ZSwiaXNUaGlyZFBhcnR5Ijp0cnVlLCJ1c2FnZSI6InN1YnNldCJ9"><meta http-equiv="origin-trial" content="AwrB+XVH/KV6HfZNVtSEqlUJi3yUbtCp0/TJRj+38NDIw19/9P1h7ECTtdLdhIzG0Bsl4n/0rVmttJtGUCcewgAAAACceyJvcmlnaW4iOiJodHRwczovL2dvb2dsZXN5bmRpY2F0aW9uLmNvbTo0NDMiLCJmZWF0dXJlIjoiQ29udmVyc2lvbk1lYXN1cmVtZW50IiwiZXhwaXJ5IjoxNjM0MDgzMTk5LCJpc1N1YmRvbWFpbiI6dHJ1ZSwiaXNUaGlyZFBhcnR5Ijp0cnVlLCJ1c2FnZSI6InN1YnNldCJ9"><meta http-equiv="origin-trial" content="Ax15QOERqai2A5XWrDY38Eg07xh2T0pkhpDPJuDlxr7D2Ka8wHvklgK7tTPZOnT+8H31lwHto5JpvYV8jRn1WgIAAACceyJvcmlnaW4iOiJodHRwczovL2dvb2dsZXRhZ3NlcnZpY2VzLmNvbTo0NDMiLCJmZWF0dXJlIjoiQ29udmVyc2lvbk1lYXN1cmVtZW50IiwiZXhwaXJ5IjoxNjM0MDgzMTk5LCJpc1N1YmRvbWFpbiI6dHJ1ZSwiaXNUaGlyZFBhcnR5Ijp0cnVlLCJ1c2FnZSI6InN1YnNldCJ9"><style type="text/css">.hljs-ln{border-collapse:collapse}            .hljs-ln td{padding:0}            .hljs-ln-n{text-align: right;padding-right: 8px;}            .hljs-ln-n:before{content:attr(data-line-number)}</style><style type="text/css">pre{position: relative}pre:hover .code-full-screen{display:none !important;}.code-full-screen{display: none !important;position: absolute;right: 4px;top: 3px;width: 24px !important;height: 24px !important;margin: 4px !important;}pre:hover .hljs-button{display: block}.hljs-button{display: none;position: absolute;right: 4px;top: 4px;font-size: 12px;color: #ffffff;background-color: #9999AA;padding: 2px 8px;margin: 8px;border-radius: 4px;cursor: pointer; box-shadow: 0 2px 4px rgba(0,0,0,0.05), 0 2px 4px rgba(0,0,0,0.05);}.hljs-button:after{content: attr(data-title)}code .hljs-button{margin: 2px 8px;}</style><link rel="stylesheet" type="text/css" href="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/user-ordertip.css"><link rel="stylesheet" type="text/css" href="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/order-payment.css"><link rel="stylesheet" type="text/css" href="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/side-toolbar.css"><link rel="stylesheet" type="text/css" href="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/csdn-footer.css"><link rel="preload" href="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/f(6).txt" as="script"><script type="text/javascript" src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/f(6).txt"></script><style type="text/css">.MathJax_Hover_Frame {border-radius: .25em; -webkit-border-radius: .25em; -moz-border-radius: .25em; -khtml-border-radius: .25em; box-shadow: 0px 0px 15px #83A; -webkit-box-shadow: 0px 0px 15px #83A; -moz-box-shadow: 0px 0px 15px #83A; -khtml-box-shadow: 0px 0px 15px #83A; border: 1px solid #A6D ! important; display: inline-block; position: absolute}
.MathJax_Menu_Button .MathJax_Hover_Arrow {position: absolute; cursor: pointer; display: inline-block; border: 2px solid #AAA; border-radius: 4px; -webkit-border-radius: 4px; -moz-border-radius: 4px; -khtml-border-radius: 4px; font-family: 'Courier New',Courier; font-size: 9px; color: #F0F0F0}
.MathJax_Menu_Button .MathJax_Hover_Arrow span {display: block; background-color: #AAA; border: 1px solid; border-radius: 3px; line-height: 0; padding: 4px}
.MathJax_Hover_Arrow:hover {color: white!important; border: 2px solid #CCC!important}
.MathJax_Hover_Arrow:hover span {background-color: #CCC!important}
</style><style type="text/css">#MathJax_About {position: fixed; left: 50%; width: auto; text-align: center; border: 3px outset; padding: 1em 2em; background-color: #DDDDDD; color: black; cursor: default; font-family: message-box; font-size: 120%; font-style: normal; text-indent: 0; text-transform: none; line-height: normal; letter-spacing: normal; word-spacing: normal; word-wrap: normal; white-space: nowrap; float: none; z-index: 201; border-radius: 15px; -webkit-border-radius: 15px; -moz-border-radius: 15px; -khtml-border-radius: 15px; box-shadow: 0px 10px 20px #808080; -webkit-box-shadow: 0px 10px 20px #808080; -moz-box-shadow: 0px 10px 20px #808080; -khtml-box-shadow: 0px 10px 20px #808080; filter: progid:DXImageTransform.Microsoft.dropshadow(OffX=2, OffY=2, Color='gray', Positive='true')}
#MathJax_About.MathJax_MousePost {outline: none}
.MathJax_Menu {position: absolute; background-color: white; color: black; width: auto; padding: 2px; border: 1px solid #CCCCCC; margin: 0; cursor: default; font: menu; text-align: left; text-indent: 0; text-transform: none; line-height: normal; letter-spacing: normal; word-spacing: normal; word-wrap: normal; white-space: nowrap; float: none; z-index: 201; box-shadow: 0px 10px 20px #808080; -webkit-box-shadow: 0px 10px 20px #808080; -moz-box-shadow: 0px 10px 20px #808080; -khtml-box-shadow: 0px 10px 20px #808080; filter: progid:DXImageTransform.Microsoft.dropshadow(OffX=2, OffY=2, Color='gray', Positive='true')}
.MathJax_MenuItem {padding: 2px 2em; background: transparent}
.MathJax_MenuArrow {position: absolute; right: .5em; padding-top: .25em; color: #666666; font-size: .75em}
.MathJax_MenuActive .MathJax_MenuArrow {color: white}
.MathJax_MenuArrow.RTL {left: .5em; right: auto}
.MathJax_MenuCheck {position: absolute; left: .7em}
.MathJax_MenuCheck.RTL {right: .7em; left: auto}
.MathJax_MenuRadioCheck {position: absolute; left: 1em}
.MathJax_MenuRadioCheck.RTL {right: 1em; left: auto}
.MathJax_MenuLabel {padding: 2px 2em 4px 1.33em; font-style: italic}
.MathJax_MenuRule {border-top: 1px solid #CCCCCC; margin: 4px 1px 0px}
.MathJax_MenuDisabled {color: GrayText}
.MathJax_MenuActive {background-color: Highlight; color: HighlightText}
.MathJax_MenuDisabled:focus, .MathJax_MenuLabel:focus {background-color: #E8E8E8}
.MathJax_ContextMenu:focus {outline: none}
.MathJax_ContextMenu .MathJax_MenuItem:focus {outline: none}
#MathJax_AboutClose {top: .2em; right: .2em}
.MathJax_Menu .MathJax_MenuClose {top: -10px; left: -10px}
.MathJax_MenuClose {position: absolute; cursor: pointer; display: inline-block; border: 2px solid #AAA; border-radius: 18px; -webkit-border-radius: 18px; -moz-border-radius: 18px; -khtml-border-radius: 18px; font-family: 'Courier New',Courier; font-size: 24px; color: #F0F0F0}
.MathJax_MenuClose span {display: block; background-color: #AAA; border: 1.5px solid; border-radius: 18px; -webkit-border-radius: 18px; -moz-border-radius: 18px; -khtml-border-radius: 18px; line-height: 0; padding: 8px 0 6px}
.MathJax_MenuClose:hover {color: white!important; border: 2px solid #CCC!important}
.MathJax_MenuClose:hover span {background-color: #CCC!important}
.MathJax_MenuClose:hover:focus {outline: none}
</style><style type="text/css">.MathJax_Preview .MJXf-math {color: inherit!important}
</style><style type="text/css">.MJX_Assistive_MathML {position: absolute!important; top: 0; left: 0; clip: rect(1px, 1px, 1px, 1px); padding: 1px 0 0 0!important; border: 0!important; height: 1px!important; width: 1px!important; overflow: hidden!important; display: block!important; -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none}
.MJX_Assistive_MathML.MJX_Assistive_MathML_Block {width: 100%!important}
</style><style type="text/css">#MathJax_Zoom {position: absolute; background-color: #F0F0F0; overflow: auto; display: block; z-index: 301; padding: .5em; border: 1px solid black; margin: 0; font-weight: normal; font-style: normal; text-align: left; text-indent: 0; text-transform: none; line-height: normal; letter-spacing: normal; word-spacing: normal; word-wrap: normal; white-space: nowrap; float: none; -webkit-box-sizing: content-box; -moz-box-sizing: content-box; box-sizing: content-box; box-shadow: 5px 5px 15px #AAAAAA; -webkit-box-shadow: 5px 5px 15px #AAAAAA; -moz-box-shadow: 5px 5px 15px #AAAAAA; -khtml-box-shadow: 5px 5px 15px #AAAAAA; filter: progid:DXImageTransform.Microsoft.dropshadow(OffX=2, OffY=2, Color='gray', Positive='true')}
#MathJax_ZoomOverlay {position: absolute; left: 0; top: 0; z-index: 300; display: inline-block; width: 100%; height: 100%; border: 0; padding: 0; margin: 0; background-color: white; opacity: 0; filter: alpha(opacity=0)}
#MathJax_ZoomFrame {position: relative; display: inline-block; height: 0; width: 0}
#MathJax_ZoomEventTrap {position: absolute; left: 0; top: 0; z-index: 302; display: inline-block; border: 0; padding: 0; margin: 0; background-color: white; opacity: 0; filter: alpha(opacity=0)}
</style><style type="text/css">.MathJax_Preview {color: #888}
#MathJax_Message {position: fixed; left: 1em; bottom: 1.5em; background-color: #E6E6E6; border: 1px solid #959595; margin: 0px; padding: 2px 8px; z-index: 102; color: black; font-size: 80%; width: auto; white-space: nowrap}
#MathJax_MSIE_Frame {position: absolute; top: 0; left: 0; width: 0px; z-index: 101; border: 0px; margin: 0px; padding: 0px}
.MathJax_Error {color: #CC0000; font-style: italic}
</style><style type="text/css">.MJXp-script {font-size: .8em}
.MJXp-right {-webkit-transform-origin: right; -moz-transform-origin: right; -ms-transform-origin: right; -o-transform-origin: right; transform-origin: right}
.MJXp-bold {font-weight: bold}
.MJXp-italic {font-style: italic}
.MJXp-scr {font-family: MathJax_Script,'Times New Roman',Times,STIXGeneral,serif}
.MJXp-frak {font-family: MathJax_Fraktur,'Times New Roman',Times,STIXGeneral,serif}
.MJXp-sf {font-family: MathJax_SansSerif,'Times New Roman',Times,STIXGeneral,serif}
.MJXp-cal {font-family: MathJax_Caligraphic,'Times New Roman',Times,STIXGeneral,serif}
.MJXp-mono {font-family: MathJax_Typewriter,'Times New Roman',Times,STIXGeneral,serif}
.MJXp-largeop {font-size: 150%}
.MJXp-largeop.MJXp-int {vertical-align: -.2em}
.MJXp-math {display: inline-block; line-height: 1.2; text-indent: 0; font-family: 'Times New Roman',Times,STIXGeneral,serif; white-space: nowrap; border-collapse: collapse}
.MJXp-display {display: block; text-align: center; margin: 1em 0}
.MJXp-math span {display: inline-block}
.MJXp-box {display: block!important; text-align: center}
.MJXp-box:after {content: " "}
.MJXp-rule {display: block!important; margin-top: .1em}
.MJXp-char {display: block!important}
.MJXp-mo {margin: 0 .15em}
.MJXp-mfrac {margin: 0 .125em; vertical-align: .25em}
.MJXp-denom {display: inline-table!important; width: 100%}
.MJXp-denom > * {display: table-row!important}
.MJXp-surd {vertical-align: top}
.MJXp-surd > * {display: block!important}
.MJXp-script-box > *  {display: table!important; height: 50%}
.MJXp-script-box > * > * {display: table-cell!important; vertical-align: top}
.MJXp-script-box > *:last-child > * {vertical-align: bottom}
.MJXp-script-box > * > * > * {display: block!important}
.MJXp-mphantom {visibility: hidden}
.MJXp-munderover {display: inline-table!important}
.MJXp-over {display: inline-block!important; text-align: center}
.MJXp-over > * {display: block!important}
.MJXp-munderover > * {display: table-row!important}
.MJXp-mtable {vertical-align: .25em; margin: 0 .125em}
.MJXp-mtable > * {display: inline-table!important; vertical-align: middle}
.MJXp-mtr {display: table-row!important}
.MJXp-mtd {display: table-cell!important; text-align: center; padding: .5em 0 0 .5em}
.MJXp-mtr > .MJXp-mtd:first-child {padding-left: 0}
.MJXp-mtr:first-child > .MJXp-mtd {padding-top: 0}
.MJXp-mlabeledtr {display: table-row!important}
.MJXp-mlabeledtr > .MJXp-mtd:first-child {padding-left: 0}
.MJXp-mlabeledtr:first-child > .MJXp-mtd {padding-top: 0}
.MJXp-merror {background-color: #FFFF88; color: #CC0000; border: 1px solid #CC0000; padding: 1px 3px; font-style: normal; font-size: 90%}
.MJXp-scale0 {-webkit-transform: scaleX(.0); -moz-transform: scaleX(.0); -ms-transform: scaleX(.0); -o-transform: scaleX(.0); transform: scaleX(.0)}
.MJXp-scale1 {-webkit-transform: scaleX(.1); -moz-transform: scaleX(.1); -ms-transform: scaleX(.1); -o-transform: scaleX(.1); transform: scaleX(.1)}
.MJXp-scale2 {-webkit-transform: scaleX(.2); -moz-transform: scaleX(.2); -ms-transform: scaleX(.2); -o-transform: scaleX(.2); transform: scaleX(.2)}
.MJXp-scale3 {-webkit-transform: scaleX(.3); -moz-transform: scaleX(.3); -ms-transform: scaleX(.3); -o-transform: scaleX(.3); transform: scaleX(.3)}
.MJXp-scale4 {-webkit-transform: scaleX(.4); -moz-transform: scaleX(.4); -ms-transform: scaleX(.4); -o-transform: scaleX(.4); transform: scaleX(.4)}
.MJXp-scale5 {-webkit-transform: scaleX(.5); -moz-transform: scaleX(.5); -ms-transform: scaleX(.5); -o-transform: scaleX(.5); transform: scaleX(.5)}
.MJXp-scale6 {-webkit-transform: scaleX(.6); -moz-transform: scaleX(.6); -ms-transform: scaleX(.6); -o-transform: scaleX(.6); transform: scaleX(.6)}
.MJXp-scale7 {-webkit-transform: scaleX(.7); -moz-transform: scaleX(.7); -ms-transform: scaleX(.7); -o-transform: scaleX(.7); transform: scaleX(.7)}
.MJXp-scale8 {-webkit-transform: scaleX(.8); -moz-transform: scaleX(.8); -ms-transform: scaleX(.8); -o-transform: scaleX(.8); transform: scaleX(.8)}
.MJXp-scale9 {-webkit-transform: scaleX(.9); -moz-transform: scaleX(.9); -ms-transform: scaleX(.9); -o-transform: scaleX(.9); transform: scaleX(.9)}
.MathJax_PHTML .noError {vertical-align: ; font-size: 90%; text-align: left; color: black; padding: 1px 3px; border: 1px solid}
</style></head>
<body class="nodata " style=""><div id="MathJax_Message" style="display: none;"></div><div id="csdn-toolbar">
                    <div class="toolbar-inside">
                      <div class="toolbar-container">
                        <div class="toolbar-container-left">
                          <div class="toolbar-logo toolbar-subMenu-box csdn-toolbar-fl"><a data-report-click="{&quot;spm&quot;:&quot;3001.4476&quot;}" data-report-query="spm=3001.4476" href="https://www.csdn.net/"><img title="CSDN首页" src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/20201124032511.png"></a>
                    </div>
                          <ul class="toolbar-menus csdn-toolbar-fl"><li class="active " title="阅读深度、前沿文章">
                                <a data-report-click="{&quot;mod&quot;:&quot;popu_336&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/&quot;,&quot;spm&quot;:&quot;3001.4477&quot;}" data-report-query="spm=3001.4477" href="https://blog.csdn.net/">
                                  博客
                                  
                                  
                                </a>
                                
                                
                              </li><li class="" title="马上开始系统学习">
                                <a data-report-click="{&quot;mod&quot;:&quot;popu_336&quot;,&quot;dest&quot;:&quot;https://edu.csdn.net/&quot;,&quot;spm&quot;:&quot;3001.4482&quot;}" data-report-query="spm=3001.4482" href="https://edu.csdn.net/">
                                  专栏课程
                                  
                                  
                                </a>
                                
                                
                              </li><li class="" title="获取源码、文档、学习资源">
                                <a data-report-click="{&quot;mod&quot;:&quot;popu_336&quot;,&quot;dest&quot;:&quot;https://download.csdn.net/&quot;,&quot;spm&quot;:&quot;3001.4483&quot;}" data-report-query="spm=3001.4483" href="https://download.csdn.net/">
                                  下载
                                  
                                  
                                </a>
                                
                                
                              </li><li class="" title="技术问题，有问必答">
                                <a data-report-click="{&quot;mod&quot;:&quot;popu_336&quot;,&quot;dest&quot;:&quot;https://ask.csdn.net/&quot;,&quot;spm&quot;:&quot;3001.4492&quot;}" data-report-query="spm=3001.4492" href="https://ask.csdn.net/">
                                  问答
                                  
                                  
                                </a>
                                
                                
                              </li><li class="" title="找到志同道合的伙伴">
                                <a data-report-click="{&quot;mod&quot;:&quot;popu_336&quot;,&quot;dest&quot;:&quot;https://bbs.csdn.net/&quot;,&quot;spm&quot;:&quot;3001.6068&quot;}" data-report-query="spm=3001.6068" href="https://bbs.csdn.net/">
                                  社区
                                  
                                  
                                </a>
                                
                                
                              </li><li class="" title="安装你的浏览器助手">
                                <a data-report-click="{&quot;spm&quot;:&quot;3001.6135&quot;,&quot;dist&quot;:&quot; https://plugin.csdn.net/?utm_source=toolbar&quot;}" data-report-query="spm=3001.6135" href="https://plugin.csdn.net/?utm_source=toolbar">
                                  插件
                                  
                                  
                                </a>
                                
                                
                              </li><li class="" title="认证你的技术能力">
                                <a data-report-click="{&quot;mod&quot;:&quot;popu_336&quot;,&quot;dest&quot;:&quot;https://ac.csdn.net/?short_code=13271b93&quot;,&quot;spm&quot;:&quot;3001.5716&quot;}" data-report-query="spm=3001.5716" href="https://ac.csdn.net/?short_code=13271b93">
                                  认证
                                  
                                  
                                </a>
                                
                                
                              </li></ul>
                        </div>
                        <div class="toolbar-container-middle">
                        <div class="toolbar-search onlySearch"><div class="toolbar-search-container">
                    <input id="toolbar-search-input" autocomplete="off" type="text" value="" placeholder="Redis">
                    <button id="toolbar-search-button"><i></i><span>搜索</span></button>
                    <input type="password" autocomplete="new-password" readonly="" disabled="true" style="display: none; position:absolute;left:-9999999px;width:0;height:0;">
                  </div></div></div>
                        <div class="toolbar-container-right">
                          <div class="toolbar-btns onlyUser"><div class="toolbar-btn toolbar-btn-login csdn-toolbar-fl ">
                       <a data-report-click="{&quot;spm&quot;:&quot;3001.5105&quot;}" data-report-query="spm=3001.5105" href="https://passport.csdn.net/account/login">登录/注册</a>
                      </div>
                    <div class="toolbar-btn toolbar-btn-vip csdn-toolbar-fl">
                      <a data-report-click="{&quot;mod&quot;:&quot;popu_336&quot;,&quot;dest&quot;:&quot;https://mall.csdn.net/vip&quot;,&quot;spm&quot;:&quot;3001.4496&quot;}" data-report-query="spm=3001.4496" href="https://mall.csdn.net/vip">会员中心 <img style="position: relative; vertical-align: middle; width: 14px; top: -1px; left: 0px;;display:inline-block" "="" src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/20210918025138.gif"></a>
                      </div>
                    <div class="toolbar-btn toolbar-btn-collect csdn-toolbar-fl">
                      <a data-report-click="{&quot;spm&quot;:&quot;3001.4506&quot;}" data-report-query="spm=3001.4506" href="https://i.csdn.net/#/user-center/collection-list?type=1">收藏</a>
                      </div>
                    <div class="toolbar-btn csdn-toolbar-fl"><a data-report-click="{&quot;spm&quot;:&quot;3001.4507&quot;}" data-report-query="spm=3001.4507" href="https://blink.csdn.net/">动态</a></div>
                    
                    <div class="toolbar-btn toolbar-btn-write csdn-toolbar-fl ">
                      <a data-report-click="{&quot;spm&quot;:&quot;3001.4503&quot;}" data-report-query="spm=3001.4503" href="https://mp.csdn.net/"><i></i>创作<i></i></a>
                    </div></div>
                        </div>
                      </div>
                    </div>
                  </div>
        <script>
            var toolbarSearchExt = '{"landingWord":["redis混合持久化配置"],"queryWord":"","tag":["Redis","混合持久化","内存淘汰策略"],"title":"Redis安装与配置(混合持久化)"}';
        </script>
    <script src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/csdn-toolbar.js.下载" type="text/javascript"></script>
    <script>
    (function(){
        var bp = document.createElement('script');
        var curProtocol = window.location.protocol.split(':')[0];
        if (curProtocol === 'https') {
            bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';
        }
        else {
            bp.src = 'http://push.zhanzhang.baidu.com/push.js';
        }
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(bp, s);
    })();
    </script>
<link rel="stylesheet" href="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/blog_code-01256533b5.min.css">
<link rel="stylesheet" href="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/chart-3456820cac.css">
<div class="main_father clearfix d-flex justify-content-center" style="height: auto !important;"> 
    <div class="container clearfix" id="mainBox">
        <main>
<script type="text/javascript">
    function getQueryString(name) {   
      var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象  
      var r = window.location.search.substr(1).match(reg);  //匹配目标参数
      if( r != null ) return decodeURIComponent( r[2] ); return '';   
    }
    function stripscript(s){ 
      var pattern = new RegExp("[`~!@#$^&*()=|{}':;',\\[\\].<>/?~！@#￥……&*（）——|{}【】‘；：”“'。，、？%]") 
      var rs = ""; 
      for (var i = 0; i < s.length; i++) { 
        rs = rs+s.substr(i, 1).replace(pattern, ''); 
      } 
      return rs; 
    }
    var blogHotWords = stripscript(getQueryString('utm_term')).length > 1 ? stripscript(getQueryString('utm_term')) : ''
</script>
<div class="blog-content-box">
        <div class="article-header-box">
        <div class="article-header">
            <div class="article-title-box">
                <h1 class="title-article" id="articleContentId">Redis安装与配置(混合持久化)</h1>
            </div>
            <div class="article-info-box">
                <div class="article-bar-top">
                    <img class="article-type-img" src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/original.png" alt="">
                    <div class="bar-content">
                    <a class="follow-nickName " href="https://blog.csdn.net/lghuntfor" target="_blank" rel="noopener">lghuntfor</a>
                    <span class="time">2019-10-13 02:25:59</span>
                    <img class="article-read-img article-heard-img" src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/articleReadEyes.png" alt="">
                    <span class="read-count">276</span>
                    <a id="blog_detail_zk_collection" class="un-collection" data-report-click="{&quot;mod&quot;:&quot;popu_823&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4232&quot;,&quot;ab&quot;:&quot;new&quot;}">
                        <img class="article-collect-img article-heard-img un-collect-status isdefault" style="display:inline-block" src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/tobarCollect.png" alt="">
                        <img class="article-collect-img article-heard-img collect-status isactive" style="display:none" src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/tobarCollectionActive.png" alt="">
                        <span class="name">收藏</span>
                        <span class="get-collection">
                            1
                        </span>
                    </a>
                    </div>
                </div>
                <div class="blog-tags-box">
                    <div class="tags-box artic-tag-box">
                            <span class="label">分类专栏：</span>
                                <a class="tag-link" href="https://blog.csdn.net/lghuntfor/category_6165810.html" target="_blank" rel="noopener">数据库</a>
                            <span class="label">文章标签：</span>
                                <a data-report-click="{&quot;mod&quot;:&quot;popu_626&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4223&quot;,&quot;strategy&quot;:&quot;Redis&quot;,&quot;ab&quot;:&quot;new&quot;}" class="tag-link" href="https://www.csdn.net/tags/NtjacgwsODIzOC1ibG9n.html" target="_blank" rel="noopener">Redis</a>
                                <a data-report-click="{&quot;mod&quot;:&quot;popu_626&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4223&quot;,&quot;strategy&quot;:&quot;混合持久化&quot;,&quot;ab&quot;:&quot;new&quot;}" class="tag-link" href="https://www.csdn.net/tags/Ntzakg4sNTcyNTQtYmxvZwO0O0OO0O0O.html" target="_blank" rel="noopener">混合持久化</a>
                                <a data-report-click="{&quot;mod&quot;:&quot;popu_626&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4223&quot;,&quot;strategy&quot;:&quot;内存淘汰策略&quot;,&quot;ab&quot;:&quot;new&quot;}" class="tag-link" href="https://www.csdn.net/tags/OtTagg1sMTc4MTMtYmxvZwO0O0OO0O0O.html" target="_blank" rel="noopener">内存淘汰策略</a>
                    </div>
                </div>
                <div class="slide-content-box">
                    <div class="article-copyright">
                        <div class="creativecommons">
                            本文为博主原创文章，未经博主允许不得转载。
                        </div>
                        <div class="article-source-link">
                            本文链接：<a href="https://blog.csdn.net/lghuntfor/article/details/102529170" target="_blank">https://blog.csdn.net/lghuntfor/article/details/102529170</a>
                        </div>
                    </div>
                </div>
                <div class="operating">
                    <a class="href-article-edit slide-toggle">版权</a>
                </div>
            </div>
        </div>
    </div>
        <div id="blogColumnPayAdvert">
            <div class="column-group">
                <div class="column-group-item column-group0 column-group-item-one">
                    <div class="item-l">
                        <a class="item-target" href="https://blog.csdn.net/lghuntfor/category_6165810.html" target="_blank" title="数据库" data-report-click="{&quot;spm&quot;:&quot;1001.2101.3001.6332&quot;}">
                            <img class="item-target" src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/20201014180756926.png" alt="">
                            <span class="title item-target">数据库</span>
                        </a>
                        <span class="dec">专栏收录该内容</span>
                    </div>
                    <div class="item-m">
                        <span>1 篇文章</span>
                        <span>0 订阅</span>
                    </div>
                    <div class="item-r">
                            <a class="item-target article-column-bt articleColumnFreeBt" data-id="6165810">订阅专栏</a>
                    </div>
                </div>
            </div>
        </div>
    <article class="baidu_pl">
        <div id="article_content" class="article_content clearfix">
        <link rel="stylesheet" href="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/ck_htmledit_views-1a85854398.css">
                <div id="content_views" class="markdown_views prism-github-gist">
                    <svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
                        <path stroke-linecap="round" d="M5,0 0,2.5 5,5z" id="raphael-marker-block" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"></path>
                    </svg>
                    <p><strong>一：安装</strong></p> 
<pre class="prettyprint"><code class="prism language-bash has-numbering" onclick="mdcp.signin(event)" style="position: unset;">官网选择对应版本并下载软件包<span class="token punctuation">(</span>这里选择 5.0.5版本<span class="token punctuation">)</span>
<span class="token function">su</span> dev <span class="token comment">#应用安装尽量不要使用root账号</span>

<span class="token function">wget</span> http://download.redis.io/releases/redis-5.0.5.tar.gz
<span class="token function">cd</span> redis-5.0.5
<span class="token function">make</span> <span class="token comment">#编译，若缺少软件，按提示yum安装即可, 编译好后对应文件会放入当前src目录</span>
<span class="token function">cd</span> src
<span class="token function">make</span> <span class="token function">install</span> PREFIX<span class="token operator">=</span>/usr/local/redis <span class="token comment">#执行打包安装，并指定应用目录</span>


<span class="token comment">#创建相关的数据,配置,日志目录</span>
<span class="token function">mkdir</span> -p /logs/redis
<span class="token function">mkdir</span> -p /data/redis/6379 <span class="token comment">#使用6379做目录，避免同一机器安装多份redis,数据文件冲突</span>
<span class="token function">mkdir</span> -p /usr/local/etc/redis

<span class="token comment">#复制配置文件</span>
<span class="token function">cp</span> <span class="token punctuation">..</span>/redis.conf /usr/local/etc/redis
<div class="hljs-button signin" data-title="登录后复制" data-report-click="{&quot;spm&quot;:&quot;1001.2101.3001.4334&quot;}"></div></code><ul class="pre-numbering" style=""><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li><li style="color: rgb(153, 153, 153);">4</li><li style="color: rgb(153, 153, 153);">5</li><li style="color: rgb(153, 153, 153);">6</li><li style="color: rgb(153, 153, 153);">7</li><li style="color: rgb(153, 153, 153);">8</li><li style="color: rgb(153, 153, 153);">9</li><li style="color: rgb(153, 153, 153);">10</li><li style="color: rgb(153, 153, 153);">11</li><li style="color: rgb(153, 153, 153);">12</li><li style="color: rgb(153, 153, 153);">13</li><li style="color: rgb(153, 153, 153);">14</li><li style="color: rgb(153, 153, 153);">15</li><li style="color: rgb(153, 153, 153);">16</li><li style="color: rgb(153, 153, 153);">17</li></ul></pre> 
<p><strong>二：基础配置</strong></p> 
<pre class="prettyprint"><code class="prism language-bash has-numbering" onclick="mdcp.signin(event)" style="position: unset;"><span class="token function">cd</span> /usr/local/etc/redis
<span class="token function">mv</span> redis.conf redis-6379.conf  <span class="token comment">#重命名, 以示区分</span>

<span class="token comment">#以下配置需要进行更改</span>
<span class="token comment">#注意配置文件中#表示注释，注释的配置不生效，要打开需去掉#</span>
<div class="hljs-button signin" data-title="登录后复制" data-report-click="{&quot;spm&quot;:&quot;1001.2101.3001.4334&quot;}"></div></code><ul class="pre-numbering" style=""><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li><li style="color: rgb(153, 153, 153);">4</li><li style="color: rgb(153, 153, 153);">5</li></ul></pre> 
<pre class="prettyprint"><code class="prism language-bash has-numbering" onclick="mdcp.signin(event)" style="position: unset;">
<span class="token comment">#基础配置</span>

<span class="token comment">#ip绑定，这里可以绑定内网ip，只限内网环境访问，示情况而定，也可忽略不配置</span>
bind 172.18.21.56

<span class="token comment">#redis服务端口,用哪个端口写那个端口即可</span>
port 6379

<span class="token comment">#设置后台启动,默认值为no,需改为yes</span>
daemonize <span class="token function">yes</span>

<span class="token comment">#进程pid文件,加port以示区分</span>
pidfile /var/run/redis_6379.pid

<span class="token comment">#日志文件</span>
logfile <span class="token string">"/logs/redis/redis-6379.log"</span>

<span class="token comment">#数据文件目录, rdb与aof的持久化存储文件会放在这下面</span>
<span class="token function">dir</span> /data/redis/6379

<span class="token comment">#redis连接密码配置</span>
requirepass 123456
<div class="hljs-button signin" data-title="登录后复制" data-report-click="{&quot;spm&quot;:&quot;1001.2101.3001.4334&quot;}"></div></code><ul class="pre-numbering" style=""><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li><li style="color: rgb(153, 153, 153);">4</li><li style="color: rgb(153, 153, 153);">5</li><li style="color: rgb(153, 153, 153);">6</li><li style="color: rgb(153, 153, 153);">7</li><li style="color: rgb(153, 153, 153);">8</li><li style="color: rgb(153, 153, 153);">9</li><li style="color: rgb(153, 153, 153);">10</li><li style="color: rgb(153, 153, 153);">11</li><li style="color: rgb(153, 153, 153);">12</li><li style="color: rgb(153, 153, 153);">13</li><li style="color: rgb(153, 153, 153);">14</li><li style="color: rgb(153, 153, 153);">15</li><li style="color: rgb(153, 153, 153);">16</li><li style="color: rgb(153, 153, 153);">17</li><li style="color: rgb(153, 153, 153);">18</li><li style="color: rgb(153, 153, 153);">19</li><li style="color: rgb(153, 153, 153);">20</li><li style="color: rgb(153, 153, 153);">21</li><li style="color: rgb(153, 153, 153);">22</li><li style="color: rgb(153, 153, 153);">23</li></ul></pre> 
<pre class="prettyprint"><code class="prism language-bash has-numbering" onclick="mdcp.signin(event)" style="position: unset;"><span class="token comment">#内存及淘汰策略配置：</span>

<span class="token comment">#最大内存,注释或设置0表示为物理机器最大可用内存,具体配置示情况而定</span>
maxmemory 2g

<span class="token comment"># volatile-lru -&gt; Evict using approximated LRU among the keys with an expire set.</span>
<span class="token comment"># allkeys-lru -&gt; Evict any key using approximated LRU.</span>
<span class="token comment"># volatile-lfu -&gt; Evict using approximated LFU among the keys with an expire set.</span>
<span class="token comment"># allkeys-lfu -&gt; Evict any key using approximated LFU.</span>
<span class="token comment"># volatile-random -&gt; Remove a random key among the ones with an expire set.</span>
<span class="token comment"># allkeys-random -&gt; Remove a random key, any key.</span>
<span class="token comment"># volatile-ttl -&gt; Remove the key with the nearest expire time (minor TTL)</span>
<span class="token comment"># noeviction -&gt; Don't evict anything, just return an error on write operations.</span>

<span class="token comment">#内存淘汰策略，Redis使用内存超过最大内存时的处理机制(是否清除部分内存)，默认是noeviction，不会清除内存，超过时会报错</span>
maxmemory-policy volatile-lru
<div class="hljs-button signin" data-title="登录后复制" data-report-click="{&quot;spm&quot;:&quot;1001.2101.3001.4334&quot;}"></div></code><ul class="pre-numbering" style=""><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li><li style="color: rgb(153, 153, 153);">4</li><li style="color: rgb(153, 153, 153);">5</li><li style="color: rgb(153, 153, 153);">6</li><li style="color: rgb(153, 153, 153);">7</li><li style="color: rgb(153, 153, 153);">8</li><li style="color: rgb(153, 153, 153);">9</li><li style="color: rgb(153, 153, 153);">10</li><li style="color: rgb(153, 153, 153);">11</li><li style="color: rgb(153, 153, 153);">12</li><li style="color: rgb(153, 153, 153);">13</li><li style="color: rgb(153, 153, 153);">14</li><li style="color: rgb(153, 153, 153);">15</li><li style="color: rgb(153, 153, 153);">16</li></ul></pre> 
<p><strong>三：持久化配置(这里使用第三种混合持久化)</strong></p> 
<pre class="prettyprint"><code class="prism language-bash has-numbering" onclick="mdcp.signin(event)" style="position: unset;"><span class="token comment">#第一种：RDB(基于内存快照的持久化存储)的配置</span>

<span class="token comment">#关闭RDB功能的话,配置这个即可以，其他save要注释掉</span>
save <span class="token string">""</span>

<span class="token comment">#如果要开启RDB配置,则打开以下注释,使用默认的即可,可以不做修改</span>
<span class="token comment">#save的格式：save seconds operation_nums</span>
<span class="token comment">#即在seconds指定的时间内(单位秒),若redis write操作达到nums次数,则执行一次RDB持久化</span>
<span class="token comment">#save 900 1</span>
<span class="token comment">#save 300 10</span>
<span class="token comment">#save 60 10000</span>

<span class="token comment">#rdb持久化时保存的文件名，默认即可，不用做修改，要开启RDB持久化才会生成此文件,RDB文件内容开头一定以REDIS</span>
dbfilename dump.rdb
<div class="hljs-button signin" data-title="登录后复制" data-report-click="{&quot;spm&quot;:&quot;1001.2101.3001.4334&quot;}"></div></code><ul class="pre-numbering" style=""><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li><li style="color: rgb(153, 153, 153);">4</li><li style="color: rgb(153, 153, 153);">5</li><li style="color: rgb(153, 153, 153);">6</li><li style="color: rgb(153, 153, 153);">7</li><li style="color: rgb(153, 153, 153);">8</li><li style="color: rgb(153, 153, 153);">9</li><li style="color: rgb(153, 153, 153);">10</li><li style="color: rgb(153, 153, 153);">11</li><li style="color: rgb(153, 153, 153);">12</li><li style="color: rgb(153, 153, 153);">13</li><li style="color: rgb(153, 153, 153);">14</li></ul></pre> 
<pre class="prettyprint"><code class="prism language-bash has-numbering" onclick="mdcp.signin(event)" style="position: unset;"><span class="token comment">#第二种：AOF(基于命令追加到文件的持久化存储)</span>

<span class="token comment">#开启aof设置为yes,默认是不开启的</span>
appendonly <span class="token function">yes</span>

<span class="token comment">#aof存储文件,不用改动</span>
appendfilename <span class="token string">"appendonly.aof"</span>

<span class="token comment">#aof追加策略, 选择其中一种即可,其余注释掉, 推荐everysec, 也是默认值</span>
<span class="token comment">#appendfsync always</span>
appendfsync everysec
<span class="token comment">#appendfsync no</span>

<span class="token comment">#always:每次write操作都执行fsync同步刷新到磁盘，数据最安全几乎不会丢失，但频繁刷新磁盘，对性能消耗极大，</span>
<span class="token comment">#如果要求不是特别高，不般不建议使用</span>

<span class="token comment">#everysec:最多每秒执行磁盘同步，数据安全与性能折中方案，如果丢失数据也只会丢失1秒内的数据，性能也较好，推荐首选</span>

<span class="token comment">#no:操作write后不会立即发生fsync调用，由操作系统自动调度刷磁盘，对磁盘压力最小，性能是最好的，但丢失数据风险最大</span>
<div class="hljs-button signin" data-title="登录后复制" data-report-click="{&quot;spm&quot;:&quot;1001.2101.3001.4334&quot;}"></div></code><ul class="pre-numbering" style=""><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li><li style="color: rgb(153, 153, 153);">4</li><li style="color: rgb(153, 153, 153);">5</li><li style="color: rgb(153, 153, 153);">6</li><li style="color: rgb(153, 153, 153);">7</li><li style="color: rgb(153, 153, 153);">8</li><li style="color: rgb(153, 153, 153);">9</li><li style="color: rgb(153, 153, 153);">10</li><li style="color: rgb(153, 153, 153);">11</li><li style="color: rgb(153, 153, 153);">12</li><li style="color: rgb(153, 153, 153);">13</li><li style="color: rgb(153, 153, 153);">14</li><li style="color: rgb(153, 153, 153);">15</li><li style="color: rgb(153, 153, 153);">16</li><li style="color: rgb(153, 153, 153);">17</li><li style="color: rgb(153, 153, 153);">18</li><li style="color: rgb(153, 153, 153);">19</li></ul></pre> 
<pre class="prettyprint"><code class="prism language-bash has-numbering" onclick="mdcp.signin(event)" style="position: unset;"><span class="token comment">#第三种：混合持久化(4.0开始推荐使用此方式)</span>
<span class="token comment">#文件内容格式: [RDB file][AOF tail]</span>
<span class="token comment">#即定期执行快照存储并更新aof文件，所以aof文件内容前面是RDB二进制数据</span>
<span class="token comment">#执行快照存储后直到下次快照存储期间，所有的操作以aof的方式追加到aof文件中，所以aof文件内容末尾是aof相关的数据</span>

<span class="token comment">#混合持久化的配置</span>
<span class="token comment">#1,关闭RDB，参考上面的配置</span>
<span class="token comment">#2,开启AOF，参考上面的配置</span>
<span class="token comment">#3,混合持久化核心配置(redis4.0开始才有):</span>
aof-use-rdb-preamble <span class="token function">yes</span>
<div class="hljs-button signin" data-title="登录后复制" data-report-click="{&quot;spm&quot;:&quot;1001.2101.3001.4334&quot;}"></div></code><ul class="pre-numbering" style=""><li style="color: rgb(153, 153, 153);">1</li><li style="color: rgb(153, 153, 153);">2</li><li style="color: rgb(153, 153, 153);">3</li><li style="color: rgb(153, 153, 153);">4</li><li style="color: rgb(153, 153, 153);">5</li><li style="color: rgb(153, 153, 153);">6</li><li style="color: rgb(153, 153, 153);">7</li><li style="color: rgb(153, 153, 153);">8</li><li style="color: rgb(153, 153, 153);">9</li><li style="color: rgb(153, 153, 153);">10</li></ul></pre>
                </div><div data-report-view="{&quot;mod&quot;:&quot;1585297308_001&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6548&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/lghuntfor/article/details/102529170&quot;,&quot;extend1&quot;:&quot;pc&quot;,&quot;ab&quot;:&quot;new&quot;}"><div></div></div>
                <link href="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/markdown_views-d7a94ec6ab.css" rel="stylesheet">
                <link href="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/style-49037e4d27.css" rel="stylesheet">
        </div>
    </article>
</div>
<div class="more-toolbox-new more-toolbox-active" id="toolBarBox">
    <div class="left-toolbox" style="position: fixed; z-index: 999; left: 450.5px; bottom: 0px; width: 1010px;">
        <div class="toolbox-left">
            <div class="profile-box"><a class="profile-href" target="_blank" href="https://blog.csdn.net/lghuntfor"><img class="profile-img" src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/3_lghuntfor"><span class="profile-name">lghuntfor</span></a></div>
            <div class="profile-attend">
                    <a class="tool-attend tool-bt-button tool-bt-attend" href="javascript:;">关注</a>
                <a class="tool-item-follow active-animation" style="display:none;">关注</a>
            </div>
        </div>
        <div class="toolbox-middle">
        <ul class="toolbox-list">
            <li class="tool-item tool-item-size tool-active is-like" id="is-like">
            <a class="tool-item-href">
                <img style="display:none;" id="is-like-imgactive-animation-like" class="animation-dom active-animation" src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/tobarThumbUpactive.png" alt="">
                <img class="isactive" style="display:none" id="is-like-imgactive" src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/newHeart2021Active.png" alt="">
                <img class="isdefault" style="display:block" id="is-like-img" src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/newHeart2021White.png" alt="">  
                <span id="spanCount" class="count ">
                        0
                </span>
            </a>
            <div class="tool-hover-tip"><span class="text space">点赞</span></div>
            </li>
            <li class="tool-item tool-item-size tool-active is-unlike" id="is-unlike">
            <a class="tool-item-href">
                <img class="isactive" style="margin-right:0px;display:none" id="is-unlike-imgactive" src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/newUnHeart2021Active.png" alt="">
                <img class="isdefault" style="margin-right:0px;display:block" id="is-unlike-img" src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/newUnHeart2021White.png" alt="">
                <span id="unlikeCount" class="count "></span>
            </a>
            <div class="tool-hover-tip"><span class="text space">踩</span></div>
            </li>
            <li class="tool-item tool-item-size tool-active tool-item-comment">
            <a class="tool-item-href" href="https://blog.csdn.net/lghuntfor/article/details/102529170#commentBox">
                <img class="isdefault" src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/newComment2021White.png" alt="">
                <span class="count">
                    0
                </span>
            </a>
            <div class="tool-hover-tip"><span class="text space">评论</span></div>
            </li>
            <li class="tool-item tool-item-size tool-active is-collection ">
            <a class="tool-item-href" href="javascript:;" data-report-click="{&quot;mod&quot;:&quot;popu_824&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4130&quot;,&quot;ab&quot;:&quot;new&quot;}">
                <img style="display:none" id="is-collection-img-collection" class="animation-dom active-animation" src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/tobarCollectionActive.png" alt="">
                <img class="isdefault" id="is-collection-img" style="display:block" src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/newCollectWhite.png" alt="">
                <img class="isactive" id="is-collection-imgactive" style="display:none" src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/newCollectActive.png" alt="">
                <span class="count get-collection " id="get-collection">
                    1
                </span>
            </a>
            <div class="tool-hover-tip"><span class="text space">收藏</span></div>
            </li>
            <li class="tool-item tool-active">
                <a class="" href="javascript:;">
                    <img class="company active" id="health-companies" src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/newHealthCompanies1Active.gif" alt="一键三连">
                </a>
                <div class="tool-hover-tip three-click"><span class="text">一键三连</span></div>
            </li>
            <li class="tool-item tool-item-bar">
            </li>
            <li class="tool-item tool-item-size tool-active tool-QRcode" id="tool-share">
                <a class="tool-item-href" href="javascript:;" data-report-click="{&quot;mod&quot;:&quot;1582594662_002&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4129&quot;,&quot;ab&quot;:&quot;new&quot;}">
                    <img class="isdefault" src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/newShareWhite.png" alt="">
                </a>
                <div class="QRcode" id="tool-QRcode">
                    <p class="title">
                    扫一扫，分享海报
                    </p>
                    <div id="shareCode" title="https://app-blog.csdn.net/share?article_id=102529170&amp;username=lghuntfor&amp;utm_source=po_popup"><canvas width="144" height="144" style="display: none;"></canvas><img src="" style="display: block;"></div>
                </div>
            </li>
        </ul>
        </div>
        <div class="toolbox-right">
                <div class="tool-directory">
                    <a class="bt-columnlist-show" data-id="6165810" data-free="true" data-subscribe="false" data-title="数据库" data-img="https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64" data-url="https://blog.csdn.net/lghuntfor/category_6165810.html" data-sum="1" data-people="0" data-price="0" data-oldprice="0" data-join="false" data-studyvip="false" data-studysubscribe="false" data-report-click="{&quot;spm&quot;:&quot;1001.2101.3001.6334&quot;,&quot;extend1&quot;:&quot;专栏目录&quot;}">专栏目录</a>
                </div>
        </div>
    </div>  
</div>
<script type="text/javascript" crossorigin="" src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/qrcode-7c90a92189.min.js.下载"></script>
<script src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/saved_resource(2)" type="text/javascript"></script>
<script type="text/javascript" crossorigin="" src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/user-login.js.下载"></script>
<script type="text/javascript" crossorigin="" src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/collection-box.js.下载"></script>
                <div class="first-recommend-box recommend-box">
<div class="recommend-item-box type_blog clearfix" data-url="https://vipstone.blog.csdn.net/article/details/109335534" data-report-view="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6661.1&quot;,&quot;mod&quot;:&quot;popu_871&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant_t0.none-task-blog-2~default~CTRLIST~default-1.no_search_link\&quot;,\&quot;dist_request_id\&quot;:\&quot;1635841541913_15264\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1635841541913_15264&quot;,&quot;ab_strategy&quot;:&quot;ctrlist&quot;,&quot;index&quot;:&quot;1&quot;,&quot;strategy&quot;:&quot;2~default~CTRLIST~default&quot;,&quot;dest&quot;:&quot;https://vipstone.blog.csdn.net/article/details/109335534&quot;}">
	<div class="content-box">
		<div class="content-blog display-flex">
			<div class="title-box">
				<a href="https://vipstone.blog.csdn.net/article/details/109335534" class="tit" target="_blank" data-report-click="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6661.1&quot;,&quot;mod&quot;:&quot;popu_871&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant_t0.none-task-blog-2~default~CTRLIST~default-1.no_search_link\&quot;,\&quot;dist_request_id\&quot;:\&quot;1635841541913_15264\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1635841541913_15264&quot;,&quot;ab_strategy&quot;:&quot;ctrlist&quot;,&quot;index&quot;:&quot;1&quot;,&quot;strategy&quot;:&quot;2~default~CTRLIST~default&quot;,&quot;dest&quot;:&quot;https://vipstone.blog.csdn.net/article/details/109335534&quot;}" data-report-query="spm=1001.2101.3001.6661.1&amp;utm_medium=distribute.pc_relevant_t0.none-task-blog-2%7Edefault%7ECTRLIST%7Edefault-1.no_search_link&amp;depth_1-utm_source=distribute.pc_relevant_t0.none-task-blog-2%7Edefault%7ECTRLIST%7Edefault-1.no_search_link">
					<div class="left ellipsis-online ellipsis-online-1"><em>Redis</em> <em>持久化</em>——<em>混合</em><em>持久化</em></div>
				</a>
			</div>
			<div class="info-box display-flex">
				<div class="info">
					<a href="https://blog.csdn.net/sufu1065" target="_blank"><span class="blog-title">Java中文社群</span></a>
				</div>
				<div class="info display-flex">
					<span class="info-block time">10-28</span>
					<span class="info-block read"><img class="read-img" src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/readCountWhite.png" alt="">
					212
					</span>
				</div>
			</div>
		</div>
		<div class="desc-box">
			<a href="https://vipstone.blog.csdn.net/article/details/109335534" target="_blank" data-report-click="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6661.1&quot;,&quot;mod&quot;:&quot;popu_871&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant_t0.none-task-blog-2~default~CTRLIST~default-1.no_search_link\&quot;,\&quot;dist_request_id\&quot;:\&quot;1635841541913_15264\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1635841541913_15264&quot;,&quot;ab_strategy&quot;:&quot;ctrlist&quot;,&quot;index&quot;:&quot;1&quot;,&quot;strategy&quot;:&quot;2~default~CTRLIST~default&quot;,&quot;dest&quot;:&quot;https://vipstone.blog.csdn.net/article/details/109335534&quot;}" data-report-query="spm=1001.2101.3001.6661.1&amp;utm_medium=distribute.pc_relevant_t0.none-task-blog-2%7Edefault%7ECTRLIST%7Edefault-1.no_search_link&amp;depth_1-utm_source=distribute.pc_relevant_t0.none-task-blog-2%7Edefault%7ECTRLIST%7Edefault-1.no_search_link">
				<div class="desc ellipsis-online ellipsis-online-1">RDB 和 AOF <em>持久化</em>各有利弊，RDB 可能会导致一定时间内的数据丢失，而 AOF 由于文件较大则会影响 <em>Redis</em> 的启动速度，为了能同时使用 RDB 和 AOF 各种的优点，<em>Redis</em> 4.0 之后新增了<em>混合</em><em>持久化</em>的方式。
在开启<em>混合</em><em>持久化</em>的情况下，AOF 重写时会把 <em>Redis</em> 的<em>持久化</em>数据，以 RDB 的格式写入到 AOF 文件的开头，之后的数据再以 AOF 的格式<em>化</em>追加的文件的末尾。...</div>
			</a>
		</div>
	</div>
</div>
                </div>
            <div class="second-recommend-box recommend-box">
<div class="recommend-item-box type_blog clearfix" data-url="https://blog.csdn.net/u014078904/article/details/104469619" data-report-view="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6650.1&quot;,&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~CTRLIST~default-1.no_search_link\&quot;,\&quot;dist_request_id\&quot;:\&quot;1635841541913_15264\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1635841541913_15264&quot;,&quot;ab_strategy&quot;:&quot;ctrlist&quot;,&quot;index&quot;:&quot;1&quot;,&quot;strategy&quot;:&quot;2~default~CTRLIST~default&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/u014078904/article/details/104469619&quot;}">
	<div class="content-box">
		<div class="content-blog display-flex">
			<div class="title-box">
				<a href="https://blog.csdn.net/u014078904/article/details/104469619" class="tit" target="_blank" data-report-click="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6650.1&quot;,&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~CTRLIST~default-1.no_search_link\&quot;,\&quot;dist_request_id\&quot;:\&quot;1635841541913_15264\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1635841541913_15264&quot;,&quot;ab_strategy&quot;:&quot;ctrlist&quot;,&quot;index&quot;:&quot;1&quot;,&quot;strategy&quot;:&quot;2~default~CTRLIST~default&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/u014078904/article/details/104469619&quot;}" data-report-query="spm=1001.2101.3001.6650.1&amp;utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7Edefault-1.no_search_link&amp;depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7Edefault-1.no_search_link">
					<div class="left ellipsis-online ellipsis-online-1"><em>redis</em><em>持久化</em>  rdb aof <em>混合</em></div>
				</a>
			</div>
			<div class="info-box display-flex">
				<div class="info">
					<a href="https://blog.csdn.net/u014078904" target="_blank"><span class="blog-title">u014078904的博客</span></a>
				</div>
				<div class="info display-flex">
					<span class="info-block time">02-23</span>
					<span class="info-block read"><img class="read-img" src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/readCountWhite.png" alt="">
					90
					</span>
				</div>
			</div>
		</div>
		<div class="desc-box">
			<a href="https://blog.csdn.net/u014078904/article/details/104469619" target="_blank" data-report-click="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6650.1&quot;,&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~CTRLIST~default-1.no_search_link\&quot;,\&quot;dist_request_id\&quot;:\&quot;1635841541913_15264\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1635841541913_15264&quot;,&quot;ab_strategy&quot;:&quot;ctrlist&quot;,&quot;index&quot;:&quot;1&quot;,&quot;strategy&quot;:&quot;2~default~CTRLIST~default&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/u014078904/article/details/104469619&quot;}" data-report-query="spm=1001.2101.3001.6650.1&amp;utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7Edefault-1.no_search_link&amp;depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7Edefault-1.no_search_link">
				<div class="desc ellipsis-online ellipsis-online-1">前言
<em>Redis</em>是基于<em>内存</em>操作的单线程缓存中间件。
一 RDB快照(snapshot)
在默认情况下，<em>Redis</em>将<em>内存</em>数据库快照保存在dump.rdb二进制文件中，
<em>Redis</em>服务重新启动时根据dump.rdb文件重写<em>Redis</em><em>内存</em>。
dump.rdb文件默认在<em>redis</em><em>安装</em>目录下面。
可以在<em>redis</em>.co...</div>
			</a>
		</div>
	</div>
</div>
            </div>
<a id="commentBox" name="commentBox"></a>
<div class="comment-box">
	<div class="comment-edit-box d-flex">
		<a id="commentsedit"></a>
		<div class="user-img">
			<a href="javascript:void(0);">
				<img class="show_loginbox" src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/anonymous-User-img.png">
			</a>
		</div>
		<form id="commentform">
			<img class="comment-sofa-flag" src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/commentFlag@2x.png" style="display: inline;">
      <textarea class="comment-content" name="comment_content" id="comment_content" placeholder="优质评论可以帮助作者获得更高权重" maxlength="1000"></textarea>
			<div class="comment-emoticon"><img class="comment-emoticon-img" data-url="https://csdnimg.cn/release/blogv2/dist/pc/img/" src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/emoticon.png" alt="表情包"></div> 
      <span class="comment-emoticon-tip">插入表情</span>
      <div class="comment-emoticon-box" style="display: none;">
        <div class="comment-emoticon-img-box"></div>
			</div>
      <div class="opt-box">
				<div id="ubbtools" class="add_code">
					<a href="https://blog.csdn.net/lghuntfor/article/details/102529170#insertcode" code="code" target="_self"><i class="icon iconfont icon-daima"></i></a>
				</div>
				<input type="hidden" id="comment_replyId" name="comment_replyId">
				<input type="hidden" id="article_id" name="article_id" value="102529170">
				<input type="hidden" id="comment_userId" name="comment_userId" value="">
				<input type="hidden" id="commentId" name="commentId" value="">
				<div class="dropdown" id="myDrap">
					<a class="dropdown-face d-flex align-items-center" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
						<div class="txt-selected text-truncate">添加代码片</div>
						<svg class="icon d-block" width="200px" height="100.00px" viewBox="0 0 2048 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"><path d="M597.33333292 298.666667h853.333334L1023.99999992 725.333333 597.33333292 298.666667z"></path></svg>
					</a>
					<ul class="dropdown-menu" id="commentCode" aria-labelledby="drop4">
						<li><a data-code="html">HTML/XML</a></li>
						<li><a data-code="objc">objective-c</a></li>
						<li><a data-code="ruby">Ruby</a></li>
						<li><a data-code="php">PHP</a></li>
						<li><a data-code="csharp">C</a></li>
						<li><a data-code="cpp">C++</a></li>
						<li><a data-code="javascript">JavaScript</a></li>
						<li><a data-code="python">Python</a></li>
						<li><a data-code="java">Java</a></li>
						<li><a data-code="css">CSS</a></li>
						<li><a data-code="sql">SQL</a></li>
						<li><a data-code="plain">其它</a></li>
					</ul>
				</div>
				<div class="right-box" id="rightBox" data-type="2">
							<span id="tip_comment" class="tip">还能输入<em>1000</em>个字符</span>
							<a data-report-click="{&quot;mod&quot;:&quot;1582594662_003&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4227&quot;,&quot;ab&quot;:&quot;new&quot;}"><input type="submit" class="btn btn-sm btn-comment" value="发表评论"></a>
				</div>
			</div>
		</form>
		<input type="button" class="bt-comment-show" value="评论">
	</div>
	<div class="comment-list-container">
		<a id="comments"></a>
		<div class="comment-list-box">
		</div>
		<div id="commentPage" class="pagination-box d-none"></div>
		<div class="opt-box text-center">
			<div class="btn btn-sm btn-link-blue" id="btnMoreComment"></div>
		</div>
	</div>
</div>            <div class="recommend-box insert-baidu-box">
                <div class="recommend-item-box clearfix" style="display:none"></div><div class="recommend-item-box baiduSearch clearfix" data-type="blog" data-report-view="{&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~baidujs_baidulandingword~default-0.no_search_link\&quot;,\&quot;dist_request_id\&quot;:\&quot;1635841541913_15264\&quot;,\&quot;parent_index\&quot;:\&quot;0\&quot;}&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4242.1&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/qq_40885085/article/details/104090345&quot;,&quot;strategy&quot;:&quot;2~default~baidujs_baidulandingword~default&quot;,&quot;ab&quot;:&quot;new&quot;,&quot;index&quot;:&quot;0&quot;}">	                <div class="content-box">		                <div class="content-blog display-flex">			                  <div class="title-box">				                  <a class="tit" href="https://blog.csdn.net/qq_40885085/article/details/104090345" target="_blank" data-report-click="{&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~baidujs_baidulandingword~default-0.no_search_link\&quot;,\&quot;dist_request_id\&quot;:\&quot;1635841541913_15264\&quot;,\&quot;parent_index\&quot;:\&quot;0\&quot;}&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4242.1&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/qq_40885085/article/details/104090345&quot;,&quot;strategy&quot;:&quot;2~default~baidujs_baidulandingword~default&quot;,&quot;ab&quot;:&quot;new&quot;,&quot;index&quot;:&quot;0&quot;}" data-report-query="utm_medium=distribute.pc_relevant.none-task-blog-2~default~baidujs_baidulandingword~default-0.no_search_link&amp;spm=1001.2101.3001.4242.1">					                <div class="left ellipsis-online ellipsis-online-1"><em>Redis</em> - <em>redis</em>.conf<em>配置</em>文件及数据<em>持久化</em>方案_江南烟雨...</div>				                  </a>			                  </div>                    <div class="info-box display-flex">                      <div class="info display-flex">                        <span class="info-block">10-3</span>                      </div>                    </div>                  </div>                  <div class="desc-box">                    <a href="https://blog.csdn.net/qq_40885085/article/details/104090345" target="_blank" data-report-click="{&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~baidujs_baidulandingword~default-0.no_search_link\&quot;,\&quot;dist_request_id\&quot;:\&quot;1635841541913_15264\&quot;,\&quot;parent_index\&quot;:\&quot;0\&quot;}&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4242.1&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/qq_40885085/article/details/104090345&quot;,&quot;strategy&quot;:&quot;2~default~baidujs_baidulandingword~default&quot;,&quot;ab&quot;:&quot;new&quot;,&quot;index&quot;:&quot;0&quot;}" data-report-query="utm_medium=distribute.pc_relevant.none-task-blog-2~default~baidujs_baidulandingword~default-0.no_search_link&amp;spm=1001.2101.3001.4242.1">                      <div class="desc ellipsis-online ellipsis-online-1">快照,即<em>持久化</em>。在规定的时间内执行了多少次操作,就会<em>持久化</em>到文件.rdb或.aof(根据<em>持久化</em>规则来说)。 <em>Redis</em>是<em>内存</em>数据库,如果没有<em>持久化</em>,则断电数据就会丢失。 具体<em>配置</em>请见下面的RDB<em>持久化</em>部分。 </div>                    </a>                  </div>                </div>              </div><div class="recommend-item-box baiduSearch clearfix" data-type="blog" data-report-view="{&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~baidujs_baidulandingword~default-1.no_search_link\&quot;,\&quot;dist_request_id\&quot;:\&quot;1635841541913_15264\&quot;,\&quot;parent_index\&quot;:\&quot;0\&quot;}&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4242.2&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/weixin_43172997/article/details/104225041&quot;,&quot;strategy&quot;:&quot;2~default~baidujs_baidulandingword~default&quot;,&quot;ab&quot;:&quot;new&quot;,&quot;index&quot;:&quot;1&quot;}">	                <div class="content-box">		                <div class="content-blog display-flex">			                  <div class="title-box">				                  <a class="tit" href="https://blog.csdn.net/weixin_43172997/article/details/104225041" target="_blank" data-report-click="{&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~baidujs_baidulandingword~default-1.no_search_link\&quot;,\&quot;dist_request_id\&quot;:\&quot;1635841541913_15264\&quot;,\&quot;parent_index\&quot;:\&quot;0\&quot;}&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4242.2&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/weixin_43172997/article/details/104225041&quot;,&quot;strategy&quot;:&quot;2~default~baidujs_baidulandingword~default&quot;,&quot;ab&quot;:&quot;new&quot;,&quot;index&quot;:&quot;1&quot;}" data-report-query="utm_medium=distribute.pc_relevant.none-task-blog-2~default~baidujs_baidulandingword~default-1.no_search_link&amp;spm=1001.2101.3001.4242.2">					                <div class="left ellipsis-online ellipsis-online-1"><em>Redis</em>的<em>持久化</em>(rdb,aof,<em>混合</em>模式),<em>持久化</em>文件的修复_天...</div>				                  </a>			                  </div>                    <div class="info-box display-flex">                      <div class="info display-flex">                        <span class="info-block">10-23</span>                      </div>                    </div>                  </div>                  <div class="desc-box">                    <a href="https://blog.csdn.net/weixin_43172997/article/details/104225041" target="_blank" data-report-click="{&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~baidujs_baidulandingword~default-1.no_search_link\&quot;,\&quot;dist_request_id\&quot;:\&quot;1635841541913_15264\&quot;,\&quot;parent_index\&quot;:\&quot;0\&quot;}&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4242.2&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/weixin_43172997/article/details/104225041&quot;,&quot;strategy&quot;:&quot;2~default~baidujs_baidulandingword~default&quot;,&quot;ab&quot;:&quot;new&quot;,&quot;index&quot;:&quot;1&quot;}" data-report-query="utm_medium=distribute.pc_relevant.none-task-blog-2~default~baidujs_baidulandingword~default-1.no_search_link&amp;spm=1001.2101.3001.4242.2">                      <div class="desc ellipsis-online ellipsis-online-1"><em>redis</em>支持三种方式的<em>持久化</em> 1.RDB(<em>Redis</em> DataBase) 2.AOF(Append Only File) 3.<em>混合</em>方式 一.RDB(<em>Redis</em> DataBase) .RDB:也称快照方式,<em>配置</em>每隔一段时间执行一次全量备份,<em>Redis</em>将数据集快照保存在磁盘上,保存在一个名为dump.rdb的二...</div>                    </a>                  </div>                </div>              </div>
<div class="recommend-item-box type_blog clearfix" data-url="https://blog.csdn.net/qq_37670288/article/details/103921816" data-report-view="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6650.2&quot;,&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~CTRLIST~default-2.no_search_link\&quot;,\&quot;dist_request_id\&quot;:\&quot;1635841541913_15264\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1635841541913_15264&quot;,&quot;ab_strategy&quot;:&quot;ctrlist&quot;,&quot;index&quot;:&quot;2&quot;,&quot;strategy&quot;:&quot;2~default~CTRLIST~default&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/qq_37670288/article/details/103921816&quot;}">
	<div class="content-box">
		<div class="content-blog display-flex">
			<div class="title-box">
				<a href="https://blog.csdn.net/qq_37670288/article/details/103921816" class="tit" target="_blank" data-report-click="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6650.2&quot;,&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~CTRLIST~default-2.no_search_link\&quot;,\&quot;dist_request_id\&quot;:\&quot;1635841541913_15264\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1635841541913_15264&quot;,&quot;ab_strategy&quot;:&quot;ctrlist&quot;,&quot;index&quot;:&quot;2&quot;,&quot;strategy&quot;:&quot;2~default~CTRLIST~default&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/qq_37670288/article/details/103921816&quot;}" data-report-query="spm=1001.2101.3001.6650.2&amp;utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7Edefault-2.no_search_link&amp;depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7Edefault-2.no_search_link">
					<div class="left ellipsis-online ellipsis-online-1">大数据笔记之<em>Redis</em></div>
				</a>
			</div>
			<div class="info-box display-flex">
				<div class="info">
					<a href="https://blog.csdn.net/qq_37670288" target="_blank"><span class="blog-title">qq_37670288的博客</span></a>
				</div>
				<div class="info display-flex">
					<span class="info-block time">01-10</span>
					<span class="info-block read"><img class="read-img" src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/readCountWhite.png" alt="">
					65
					</span>
				</div>
			</div>
		</div>
		<div class="desc-box">
			<a href="https://blog.csdn.net/qq_37670288/article/details/103921816" target="_blank" data-report-click="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6650.2&quot;,&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~CTRLIST~default-2.no_search_link\&quot;,\&quot;dist_request_id\&quot;:\&quot;1635841541913_15264\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1635841541913_15264&quot;,&quot;ab_strategy&quot;:&quot;ctrlist&quot;,&quot;index&quot;:&quot;2&quot;,&quot;strategy&quot;:&quot;2~default~CTRLIST~default&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/qq_37670288/article/details/103921816&quot;}" data-report-query="spm=1001.2101.3001.6650.2&amp;utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7Edefault-2.no_search_link&amp;depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7Edefault-2.no_search_link">
				<div class="desc ellipsis-online ellipsis-online-1"><em>Redis</em>简介
<em>redis</em>是一个开源的使用 C 语言编写，支持网络，基于<em>内存</em>并且可<em>持久化</em>的日志 K-V 非关系型数据库。支持多种语言的API。支持多种数据类型（String、List、Set等）
<em>Redis</em>应用场景

缓存： 当系统接口比较慢时，可以把系统数据接口的数据缓存起来，下次可直接从缓存中读取。
数据存储：  <em>redis</em>有两种<em>持久化</em>机制【AOF和RDB】，可以将数据<em>持久化</em>到硬盘中，保证数据...</div>
			</a>
		</div>
	</div>
</div>
<div class="recommend-item-box type_blog clearfix" data-url="https://blog.csdn.net/u012712556/article/details/106172700" data-report-view="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6650.3&quot;,&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~CTRLIST~default-3.no_search_link\&quot;,\&quot;dist_request_id\&quot;:\&quot;1635841541913_15264\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1635841541913_15264&quot;,&quot;ab_strategy&quot;:&quot;ctrlist&quot;,&quot;index&quot;:&quot;3&quot;,&quot;strategy&quot;:&quot;2~default~CTRLIST~default&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/u012712556/article/details/106172700&quot;}">
	<div class="content-box">
		<div class="content-blog display-flex">
			<div class="title-box">
				<a href="https://blog.csdn.net/u012712556/article/details/106172700" class="tit" target="_blank" data-report-click="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6650.3&quot;,&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~CTRLIST~default-3.no_search_link\&quot;,\&quot;dist_request_id\&quot;:\&quot;1635841541913_15264\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1635841541913_15264&quot;,&quot;ab_strategy&quot;:&quot;ctrlist&quot;,&quot;index&quot;:&quot;3&quot;,&quot;strategy&quot;:&quot;2~default~CTRLIST~default&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/u012712556/article/details/106172700&quot;}" data-report-query="spm=1001.2101.3001.6650.3&amp;utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7Edefault-3.no_search_link&amp;depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7Edefault-3.no_search_link">
					<div class="left ellipsis-online ellipsis-online-1"><em>Redis</em><em>持久化</em>中的RDB、AOF以及<em>混合</em>模式</div>
				</a>
			</div>
			<div class="info-box display-flex">
				<div class="info">
					<a href="https://blog.csdn.net/u012712556" target="_blank"><span class="blog-title">时间蜗牛的博客</span></a>
				</div>
				<div class="info display-flex">
					<span class="info-block time">05-17</span>
					<span class="info-block read"><img class="read-img" src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/readCountWhite.png" alt="">
					4073
					</span>
				</div>
			</div>
		</div>
		<div class="desc-box">
			<a href="https://blog.csdn.net/u012712556/article/details/106172700" target="_blank" data-report-click="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6650.3&quot;,&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~CTRLIST~default-3.no_search_link\&quot;,\&quot;dist_request_id\&quot;:\&quot;1635841541913_15264\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1635841541913_15264&quot;,&quot;ab_strategy&quot;:&quot;ctrlist&quot;,&quot;index&quot;:&quot;3&quot;,&quot;strategy&quot;:&quot;2~default~CTRLIST~default&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/u012712556/article/details/106172700&quot;}" data-report-query="spm=1001.2101.3001.6650.3&amp;utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7Edefault-3.no_search_link&amp;depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7Edefault-3.no_search_link">
				<div class="desc ellipsis-online ellipsis-online-1"><em>Redis</em><em>持久化</em>
1 RDB
在指定的时间间隔内将<em>内存</em>中的数据以快照的形式保存到磁盘
过程：
1 客户端执行bgsave命令，<em>redis</em>主进程收到指令并判断此时是否在执行bg<em>re</em>writeaof，
如果此时正好在执行则bgsave直接返回，不fork子进程，如果没有执行2bg<em>re</em>writeaof重写AOF文件，则进入下一个阶段；
3主进程调用fork方法创建子进程，在创建过程中<em>redis</em>主进程阻塞，所以不能响应客户端请求；
4子进程创建完成以后，bgsave命令返回“Background saving st</div>
			</a>
		</div>
	</div>
</div><div class="recommend-item-box baiduSearch clearfix" data-type="blog" data-report-view="{&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~baidujs_baidulandingword~default-4.no_search_link\&quot;,\&quot;dist_request_id\&quot;:\&quot;1635841541913_15264\&quot;,\&quot;parent_index\&quot;:\&quot;3\&quot;}&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4242.3&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/u012712556/article/details/106172700/&quot;,&quot;strategy&quot;:&quot;2~default~baidujs_baidulandingword~default&quot;,&quot;ab&quot;:&quot;new&quot;,&quot;index&quot;:&quot;4&quot;}">	                <div class="content-box">		                <div class="content-blog display-flex">			                  <div class="title-box">				                  <a class="tit" href="https://blog.csdn.net/u012712556/article/details/106172700/" target="_blank" data-report-click="{&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~baidujs_baidulandingword~default-4.no_search_link\&quot;,\&quot;dist_request_id\&quot;:\&quot;1635841541913_15264\&quot;,\&quot;parent_index\&quot;:\&quot;3\&quot;}&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4242.3&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/u012712556/article/details/106172700/&quot;,&quot;strategy&quot;:&quot;2~default~baidujs_baidulandingword~default&quot;,&quot;ab&quot;:&quot;new&quot;,&quot;index&quot;:&quot;4&quot;}" data-report-query="utm_medium=distribute.pc_relevant.none-task-blog-2~default~baidujs_baidulandingword~default-4.no_search_link&amp;spm=1001.2101.3001.4242.3">					                <div class="left ellipsis-online ellipsis-online-1"><em>Redis</em><em>持久化</em>中的RDB、AOF以及<em>混合</em>模式_时间蜗牛的博客...</div>				                  </a>			                  </div>                    <div class="info-box display-flex">                      <div class="info display-flex">                        <span class="info-block">9-28</span>                      </div>                    </div>                  </div>                  <div class="desc-box">                    <a href="https://blog.csdn.net/u012712556/article/details/106172700/" target="_blank" data-report-click="{&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~baidujs_baidulandingword~default-4.no_search_link\&quot;,\&quot;dist_request_id\&quot;:\&quot;1635841541913_15264\&quot;,\&quot;parent_index\&quot;:\&quot;3\&quot;}&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4242.3&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/u012712556/article/details/106172700/&quot;,&quot;strategy&quot;:&quot;2~default~baidujs_baidulandingword~default&quot;,&quot;ab&quot;:&quot;new&quot;,&quot;index&quot;:&quot;4&quot;}" data-report-query="utm_medium=distribute.pc_relevant.none-task-blog-2~default~baidujs_baidulandingword~default-4.no_search_link&amp;spm=1001.2101.3001.4242.3">                      <div class="desc ellipsis-online ellipsis-online-1">1.开始bg<em>re</em>writeaof,判断当前有没有bgsave命令(RDB<em>持久化</em>)/bg<em>re</em>writeaof在执行,倘若有,则这些命令执行完成以后在执行。 2.主进程fork出子进程,在这一个短暂的时间内,<em>redis</em>是阻塞的。 3.主进程fork完子进程继续接受客户端请求,所有写命令...</div>                    </a>                  </div>                </div>              </div><div class="recommend-item-box baiduSearch clearfix" data-type="blog" data-report-view="{&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~baidujs_baidulandingword~default-5.no_search_link\&quot;,\&quot;dist_request_id\&quot;:\&quot;1635841541913_15264\&quot;,\&quot;parent_index\&quot;:\&quot;3\&quot;}&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4242.4&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/pengweismile/article/details/112252402&quot;,&quot;strategy&quot;:&quot;2~default~baidujs_baidulandingword~default&quot;,&quot;ab&quot;:&quot;new&quot;,&quot;index&quot;:&quot;5&quot;}">	                <div class="content-box">		                <div class="content-blog display-flex">			                  <div class="title-box">				                  <a class="tit" href="https://blog.csdn.net/pengweismile/article/details/112252402" target="_blank" data-report-click="{&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~baidujs_baidulandingword~default-5.no_search_link\&quot;,\&quot;dist_request_id\&quot;:\&quot;1635841541913_15264\&quot;,\&quot;parent_index\&quot;:\&quot;3\&quot;}&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4242.4&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/pengweismile/article/details/112252402&quot;,&quot;strategy&quot;:&quot;2~default~baidujs_baidulandingword~default&quot;,&quot;ab&quot;:&quot;new&quot;,&quot;index&quot;:&quot;5&quot;}" data-report-query="utm_medium=distribute.pc_relevant.none-task-blog-2~default~baidujs_baidulandingword~default-5.no_search_link&amp;spm=1001.2101.3001.4242.4">					                <div class="left ellipsis-online ellipsis-online-1"><em>redis</em><em>持久化</em>机制-RDB-AOF-<em>混合</em><em>持久化</em>_pengweismile的专栏</div>				                  </a>			                  </div>                    <div class="info-box display-flex">                      <div class="info display-flex">                        <span class="info-block">10-24</span>                      </div>                    </div>                  </div>                  <div class="desc-box">                    <a href="https://blog.csdn.net/pengweismile/article/details/112252402" target="_blank" data-report-click="{&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~baidujs_baidulandingword~default-5.no_search_link\&quot;,\&quot;dist_request_id\&quot;:\&quot;1635841541913_15264\&quot;,\&quot;parent_index\&quot;:\&quot;3\&quot;}&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4242.4&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/pengweismile/article/details/112252402&quot;,&quot;strategy&quot;:&quot;2~default~baidujs_baidulandingword~default&quot;,&quot;ab&quot;:&quot;new&quot;,&quot;index&quot;:&quot;5&quot;}" data-report-query="utm_medium=distribute.pc_relevant.none-task-blog-2~default~baidujs_baidulandingword~default-5.no_search_link&amp;spm=1001.2101.3001.4242.4">                      <div class="desc ellipsis-online ellipsis-online-1"><em>redis</em><em>持久化</em>机制-RDB-AOF-<em>混合</em><em>持久化</em> RDB方式的<em>持久化</em> 将<em>redis</em><em>内存</em>直接把snapshot保存到文件系统。将整个<em>内存</em>数据存放到dump.rdb file 中。<em>配置</em>如下: [allen@localhost src]$ cd <em>redis</em>-5.0.3...</div>                    </a>                  </div>                </div>              </div>
		
<div class="recommend-item-box type_blog clearfix" data-url="https://blog.csdn.net/huachangzai/article/details/95741442" data-report-view="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6650.4&quot;,&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~BlogCommendFromBaidu~default-4.no_search_link\&quot;,\&quot;dist_request_id\&quot;:\&quot;1635841541913_15264\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1635841541913_15264&quot;,&quot;ab_strategy&quot;:&quot;ctrlist&quot;,&quot;index&quot;:&quot;4&quot;,&quot;strategy&quot;:&quot;2~default~BlogCommendFromBaidu~default&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/huachangzai/article/details/95741442&quot;}">
	<div class="content-box">
		<div class="content-blog display-flex">
			<div class="title-box">
				<a href="https://blog.csdn.net/huachangzai/article/details/95741442" class="tit" target="_blank" data-report-click="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6650.4&quot;,&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~BlogCommendFromBaidu~default-4.no_search_link\&quot;,\&quot;dist_request_id\&quot;:\&quot;1635841541913_15264\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1635841541913_15264&quot;,&quot;ab_strategy&quot;:&quot;ctrlist&quot;,&quot;index&quot;:&quot;4&quot;,&quot;strategy&quot;:&quot;2~default~BlogCommendFromBaidu~default&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/huachangzai/article/details/95741442&quot;}" data-report-query="spm=1001.2101.3001.6650.4&amp;utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7Edefault-4.no_search_link&amp;depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7Edefault-4.no_search_link">
					<div class="left ellipsis-online ellipsis-online-1"><em>redis</em><em>混合</em><em>持久化</em>的<em>配置</em></div>
				</a>
			</div>
			<div class="info-box display-flex">
				<div class="info">
					<a href="https://blog.csdn.net/huachangzai" target="_blank"><span class="blog-title">huachangzai的博客</span></a>
				</div>
				<div class="info display-flex">
					<span class="info-block time">07-13</span>
					<span class="info-block read"><img class="read-img" src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/readCountWhite.png" alt="">
					3327
					</span>
				</div>
			</div>
		</div>
		<div class="desc-box">
			<a href="https://blog.csdn.net/huachangzai/article/details/95741442" target="_blank" data-report-click="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6650.4&quot;,&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~BlogCommendFromBaidu~default-4.no_search_link\&quot;,\&quot;dist_request_id\&quot;:\&quot;1635841541913_15264\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1635841541913_15264&quot;,&quot;ab_strategy&quot;:&quot;ctrlist&quot;,&quot;index&quot;:&quot;4&quot;,&quot;strategy&quot;:&quot;2~default~BlogCommendFromBaidu~default&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/huachangzai/article/details/95741442&quot;}" data-report-query="spm=1001.2101.3001.6650.4&amp;utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7Edefault-4.no_search_link&amp;depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7Edefault-4.no_search_link">
				<div class="desc ellipsis-online ellipsis-online-1"><em>redis</em>4.0之后，<em>持久化</em>方式多了一种，叫<em>混合</em><em>持久化</em>，我在<em>安装</em><em>配置</em>过程中费了一些周折，以为没有<em>配置</em>成功，后来看了一些<em>持久化</em>的原理才弄明白，记录如下：

一、参考

1、<em>redis</em>源码分析（6）——aof <em>re</em>write https://blog.csdn.net/chosen0ne/article/details/44461497

2、<em>REDIS</em> AOF的实现https://blog.csdn...</div>
			</a>
		</div>
	</div>
</div>
<div class="recommend-item-box type_blog clearfix" data-url="https://blog.csdn.net/wsdc0521/article/details/106765809" data-report-view="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6650.5&quot;,&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~BlogCommendFromBaidu~default-5.no_search_link\&quot;,\&quot;dist_request_id\&quot;:\&quot;1635841541913_15264\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1635841541913_15264&quot;,&quot;ab_strategy&quot;:&quot;ctrlist&quot;,&quot;index&quot;:&quot;5&quot;,&quot;strategy&quot;:&quot;2~default~BlogCommendFromBaidu~default&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/wsdc0521/article/details/106765809&quot;}">
	<div class="content-box">
		<div class="content-blog display-flex">
			<div class="title-box">
				<a href="https://blog.csdn.net/wsdc0521/article/details/106765809" class="tit" target="_blank" data-report-click="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6650.5&quot;,&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~BlogCommendFromBaidu~default-5.no_search_link\&quot;,\&quot;dist_request_id\&quot;:\&quot;1635841541913_15264\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1635841541913_15264&quot;,&quot;ab_strategy&quot;:&quot;ctrlist&quot;,&quot;index&quot;:&quot;5&quot;,&quot;strategy&quot;:&quot;2~default~BlogCommendFromBaidu~default&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/wsdc0521/article/details/106765809&quot;}" data-report-query="spm=1001.2101.3001.6650.5&amp;utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7Edefault-5.no_search_link&amp;depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7Edefault-5.no_search_link">
					<div class="left ellipsis-online ellipsis-online-1"><em>Redis</em>系列(十)、详解<em>Redis</em><em>持久化</em>方式AOF、RDB以及<em>混合</em><em>持久化</em></div>
				</a>
			</div>
			<div class="info-box display-flex">
				<div class="info">
					<a href="https://blog.csdn.net/wsdc0521" target="_blank"><span class="blog-title">王义凯 的博客</span></a>
				</div>
				<div class="info display-flex">
					<span class="info-block time">06-16</span>
					<span class="info-block read"><img class="read-img" src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/readCountWhite.png" alt="">
					2693
					</span>
				</div>
			</div>
		</div>
		<div class="desc-box">
			<a href="https://blog.csdn.net/wsdc0521/article/details/106765809" target="_blank" data-report-click="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6650.5&quot;,&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~BlogCommendFromBaidu~default-5.no_search_link\&quot;,\&quot;dist_request_id\&quot;:\&quot;1635841541913_15264\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1635841541913_15264&quot;,&quot;ab_strategy&quot;:&quot;ctrlist&quot;,&quot;index&quot;:&quot;5&quot;,&quot;strategy&quot;:&quot;2~default~BlogCommendFromBaidu~default&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/wsdc0521/article/details/106765809&quot;}" data-report-query="spm=1001.2101.3001.6650.5&amp;utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7Edefault-5.no_search_link&amp;depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7Edefault-5.no_search_link">
				<div class="desc ellipsis-online ellipsis-online-1">之前介绍<em>Redis</em>特点的时候其中有一条是<em>Redis</em>支持数据<em>持久化</em>，可以将<em>内存</em>中的数据<em>持久化</em>到磁盘中，重启的时候再次加载使用。<em>Redis</em>4之前的数据<em>持久化</em>有AOF和RDB两种，从<em>Redis</em>4之后新增了AOF+RDB<em>混合</em><em>持久化</em>的方式，本篇就<em>Redis</em>的三种数据<em>持久化</em>的方式进行详细介绍以及他们的场景和区别。</div>
			</a>
		</div>
	</div>
</div>
<div class="recommend-item-box type_blog clearfix" data-url="https://blog.csdn.net/qq_36318234/article/details/79994133" data-report-view="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6650.6&quot;,&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~BlogCommendFromBaidu~default-6.no_search_link\&quot;,\&quot;dist_request_id\&quot;:\&quot;1635841541913_15264\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1635841541913_15264&quot;,&quot;ab_strategy&quot;:&quot;ctrlist&quot;,&quot;index&quot;:&quot;6&quot;,&quot;strategy&quot;:&quot;2~default~BlogCommendFromBaidu~default&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/qq_36318234/article/details/79994133&quot;}">
	<div class="content-box">
		<div class="content-blog display-flex">
			<div class="title-box">
				<a href="https://blog.csdn.net/qq_36318234/article/details/79994133" class="tit" target="_blank" data-report-click="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6650.6&quot;,&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~BlogCommendFromBaidu~default-6.no_search_link\&quot;,\&quot;dist_request_id\&quot;:\&quot;1635841541913_15264\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1635841541913_15264&quot;,&quot;ab_strategy&quot;:&quot;ctrlist&quot;,&quot;index&quot;:&quot;6&quot;,&quot;strategy&quot;:&quot;2~default~BlogCommendFromBaidu~default&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/qq_36318234/article/details/79994133&quot;}" data-report-query="spm=1001.2101.3001.6650.6&amp;utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7Edefault-6.no_search_link&amp;depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7Edefault-6.no_search_link">
					<div class="left ellipsis-online ellipsis-online-1"><em>Redis</em>-4.0以后的<em>混合</em><em>持久化</em></div>
				</a>
			</div>
			<div class="info-box display-flex">
				<div class="info">
					<a href="https://blog.csdn.net/qq_36318234" target="_blank"><span class="blog-title">qq_36318234的博客</span></a>
				</div>
				<div class="info display-flex">
					<span class="info-block time">04-18</span>
					<span class="info-block read"><img class="read-img" src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/readCountWhite.png" alt="">
					6882
					</span>
				</div>
			</div>
		</div>
		<div class="desc-box">
			<a href="https://blog.csdn.net/qq_36318234/article/details/79994133" target="_blank" data-report-click="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6650.6&quot;,&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~BlogCommendFromBaidu~default-6.no_search_link\&quot;,\&quot;dist_request_id\&quot;:\&quot;1635841541913_15264\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1635841541913_15264&quot;,&quot;ab_strategy&quot;:&quot;ctrlist&quot;,&quot;index&quot;:&quot;6&quot;,&quot;strategy&quot;:&quot;2~default~BlogCommendFromBaidu~default&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/qq_36318234/article/details/79994133&quot;}" data-report-query="spm=1001.2101.3001.6650.6&amp;utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7Edefault-6.no_search_link&amp;depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7Edefault-6.no_search_link">
				<div class="desc ellipsis-online ellipsis-online-1"><em>Redis</em> 当前支持 aof 和 rdb 这两种<em>持久化</em>方式。 有些对 <em>Redis</em> 不是特别的了解同学误解<em>持久化</em>是读写数据也会到磁盘。这里辟谣一下:<em>Redis</em> 读写都是全<em>内存</em>的, <em>持久化</em>数据只是作为磁盘备份, 实例重启或者机器断电的时候可以从磁盘加载到<em>内存</em>由于本篇博客主要是为了分析 4.0 版本的 rdb 和 aof <em>混合</em>存储的实现，所以不会详细介绍 rdb 和 aof。如果有想进一步了解可参考 《...</div>
			</a>
		</div>
	</div>
</div>
<div class="recommend-item-box type_blog clearfix" data-url="https://blog.csdn.net/wayne_primes/article/details/108364294" data-report-view="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6650.7&quot;,&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~BlogCommendFromBaidu~default-7.no_search_link\&quot;,\&quot;dist_request_id\&quot;:\&quot;1635841541913_15264\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1635841541913_15264&quot;,&quot;ab_strategy&quot;:&quot;ctrlist&quot;,&quot;index&quot;:&quot;7&quot;,&quot;strategy&quot;:&quot;2~default~BlogCommendFromBaidu~default&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/wayne_primes/article/details/108364294&quot;}">
	<div class="content-box">
		<div class="content-blog display-flex">
			<div class="title-box">
				<a href="https://blog.csdn.net/wayne_primes/article/details/108364294" class="tit" target="_blank" data-report-click="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6650.7&quot;,&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~BlogCommendFromBaidu~default-7.no_search_link\&quot;,\&quot;dist_request_id\&quot;:\&quot;1635841541913_15264\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1635841541913_15264&quot;,&quot;ab_strategy&quot;:&quot;ctrlist&quot;,&quot;index&quot;:&quot;7&quot;,&quot;strategy&quot;:&quot;2~default~BlogCommendFromBaidu~default&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/wayne_primes/article/details/108364294&quot;}" data-report-query="spm=1001.2101.3001.6650.7&amp;utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7Edefault-7.no_search_link&amp;depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7Edefault-7.no_search_link">
					<div class="left ellipsis-online ellipsis-online-1">Docker-<em>redis</em>集群+<em>混合</em><em>持久化</em></div>
				</a>
			</div>
			<div class="info-box display-flex">
				<div class="info">
					<a href="https://blog.csdn.net/wayne_primes" target="_blank"><span class="blog-title">大锅霍皮久的博客</span></a>
				</div>
				<div class="info display-flex">
					<span class="info-block time">09-02</span>
					<span class="info-block read"><img class="read-img" src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/readCountWhite.png" alt="">
					423
					</span>
				</div>
			</div>
		</div>
		<div class="desc-box">
			<a href="https://blog.csdn.net/wayne_primes/article/details/108364294" target="_blank" data-report-click="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6650.7&quot;,&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~BlogCommendFromBaidu~default-7.no_search_link\&quot;,\&quot;dist_request_id\&quot;:\&quot;1635841541913_15264\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1635841541913_15264&quot;,&quot;ab_strategy&quot;:&quot;ctrlist&quot;,&quot;index&quot;:&quot;7&quot;,&quot;strategy&quot;:&quot;2~default~BlogCommendFromBaidu~default&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/wayne_primes/article/details/108364294&quot;}" data-report-query="spm=1001.2101.3001.6650.7&amp;utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7Edefault-7.no_search_link&amp;depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7Edefault-7.no_search_link">
				<div class="desc ellipsis-online ellipsis-online-1">了解<em>Re</em>ids集群三种模式
主从复制模式

通过<em>持久化</em>功能，<em>Redis</em>保证了即使在服务器重启的情况下也不会丢失（或少量丢失）数据，因为<em>持久化</em>会把<em>内存</em>中数据保存到硬盘上，重启会从硬盘上加载数据。 但是由于数据是存储在一台服务器上的，如果这台服务器出现硬盘故障等问题，也会导致数据丢失。
为了避免单点故障，通常的做法是将数据库复制多个副本以部署在不同的服务器上，这样即使有一台服务器出现故障，其他服务器依然可以继续提供服务。
为此， <em>Redis</em> 提供了复制（<em>re</em>plication）功能，可以实现当一台数据库中的数据</div>
			</a>
		</div>
	</div>
</div>
<div class="recommend-item-box type_blog clearfix" data-url="https://blog.csdn.net/xinbumi/article/details/89742930" data-report-view="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6650.8&quot;,&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~BlogCommendFromBaidu~default-8.no_search_link\&quot;,\&quot;dist_request_id\&quot;:\&quot;1635841541913_15264\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1635841541913_15264&quot;,&quot;ab_strategy&quot;:&quot;ctrlist&quot;,&quot;index&quot;:&quot;8&quot;,&quot;strategy&quot;:&quot;2~default~BlogCommendFromBaidu~default&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/xinbumi/article/details/89742930&quot;}">
	<div class="content-box">
		<div class="content-blog display-flex">
			<div class="title-box">
				<a href="https://blog.csdn.net/xinbumi/article/details/89742930" class="tit" target="_blank" data-report-click="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6650.8&quot;,&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~BlogCommendFromBaidu~default-8.no_search_link\&quot;,\&quot;dist_request_id\&quot;:\&quot;1635841541913_15264\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1635841541913_15264&quot;,&quot;ab_strategy&quot;:&quot;ctrlist&quot;,&quot;index&quot;:&quot;8&quot;,&quot;strategy&quot;:&quot;2~default~BlogCommendFromBaidu~default&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/xinbumi/article/details/89742930&quot;}" data-report-query="spm=1001.2101.3001.6650.8&amp;utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7Edefault-8.no_search_link&amp;depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7Edefault-8.no_search_link">
					<div class="left ellipsis-online ellipsis-online-1"><em>Redis</em> --- <em>Redis</em>如何做<em>持久化</em></div>
				</a>
			</div>
			<div class="info-box display-flex">
				<div class="info">
					<a href="https://blog.csdn.net/xinbumi" target="_blank"><span class="blog-title">xinbumi的博客</span></a>
				</div>
				<div class="info display-flex">
					<span class="info-block time">05-02</span>
					<span class="info-block read"><img class="read-img" src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/readCountWhite.png" alt="">
					1万+
					</span>
				</div>
			</div>
		</div>
		<div class="desc-box">
			<a href="https://blog.csdn.net/xinbumi/article/details/89742930" target="_blank" data-report-click="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6650.8&quot;,&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~BlogCommendFromBaidu~default-8.no_search_link\&quot;,\&quot;dist_request_id\&quot;:\&quot;1635841541913_15264\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1635841541913_15264&quot;,&quot;ab_strategy&quot;:&quot;ctrlist&quot;,&quot;index&quot;:&quot;8&quot;,&quot;strategy&quot;:&quot;2~default~BlogCommendFromBaidu~default&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/xinbumi/article/details/89742930&quot;}" data-report-query="spm=1001.2101.3001.6650.8&amp;utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7Edefault-8.no_search_link&amp;depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7Edefault-8.no_search_link">
				<div class="desc ellipsis-online ellipsis-online-1"><em>Redis</em>如何做<em>持久化</em>

一共三种

一、RDB（快照）<em>持久化</em>：保存某个时间点的全量数据快照

<em>redis</em>.conf

save 60 1 代表<em>Redis</em>在60秒内写入一条数据那么进行快照

stop-writes-on-basave-error yes 代表当备份进程出错的时候，主进程就停止写入新的操作了。这样是为了保护<em>持久化</em>数据一致性的问题。

rdbcomp<em>re</em>ssion yes 表示...</div>
			</a>
		</div>
	</div>
</div>
<div class="recommend-item-box type_blog clearfix" data-url="https://blog.csdn.net/yan245294305/article/details/99084402" data-report-view="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6650.9&quot;,&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~BlogCommendFromBaidu~default-9.no_search_link\&quot;,\&quot;dist_request_id\&quot;:\&quot;1635841541913_15264\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1635841541913_15264&quot;,&quot;ab_strategy&quot;:&quot;ctrlist&quot;,&quot;index&quot;:&quot;9&quot;,&quot;strategy&quot;:&quot;2~default~BlogCommendFromBaidu~default&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/yan245294305/article/details/99084402&quot;}">
	<div class="content-box">
		<div class="content-blog display-flex">
			<div class="title-box">
				<a href="https://blog.csdn.net/yan245294305/article/details/99084402" class="tit" target="_blank" data-report-click="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6650.9&quot;,&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~BlogCommendFromBaidu~default-9.no_search_link\&quot;,\&quot;dist_request_id\&quot;:\&quot;1635841541913_15264\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1635841541913_15264&quot;,&quot;ab_strategy&quot;:&quot;ctrlist&quot;,&quot;index&quot;:&quot;9&quot;,&quot;strategy&quot;:&quot;2~default~BlogCommendFromBaidu~default&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/yan245294305/article/details/99084402&quot;}" data-report-query="spm=1001.2101.3001.6650.9&amp;utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7Edefault-9.no_search_link&amp;depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7Edefault-9.no_search_link">
					<div class="left ellipsis-online ellipsis-online-1"><em>Redis</em>数据的<em>持久化</em>（RDB，AOF，<em>混合</em>）</div>
				</a>
			</div>
			<div class="info-box display-flex">
				<div class="info">
					<a href="https://blog.csdn.net/yan245294305" target="_blank"><span class="blog-title">yan245294305的博客</span></a>
				</div>
				<div class="info display-flex">
					<span class="info-block time">08-10</span>
					<span class="info-block read"><img class="read-img" src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/readCountWhite.png" alt="">
					547
					</span>
				</div>
			</div>
		</div>
		<div class="desc-box">
			<a href="https://blog.csdn.net/yan245294305/article/details/99084402" target="_blank" data-report-click="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6650.9&quot;,&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~BlogCommendFromBaidu~default-9.no_search_link\&quot;,\&quot;dist_request_id\&quot;:\&quot;1635841541913_15264\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1635841541913_15264&quot;,&quot;ab_strategy&quot;:&quot;ctrlist&quot;,&quot;index&quot;:&quot;9&quot;,&quot;strategy&quot;:&quot;2~default~BlogCommendFromBaidu~default&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/yan245294305/article/details/99084402&quot;}" data-report-query="spm=1001.2101.3001.6650.9&amp;utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7Edefault-9.no_search_link&amp;depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7Edefault-9.no_search_link">
				<div class="desc ellipsis-online ellipsis-online-1">一. 引言
对于一个以<em>内存</em>作为存储介质的数据库来说，<em>持久化</em>是非常重要的一个模块。在<em>Redis</em>中有两种<em>持久化</em><em>策略</em>，分别是RDB和AOF。本文就RDB和AOF<em>持久化</em><em>策略</em>以及二者的优缺点进行简单描述。
二. RDB
1. RDB<em>持久化</em>的原理
所有的数据在<em>Redis</em>中都是以key/value的形式存储。把某个时间点<em>Redis</em>数据库的key/value数据记录到文件，然后存储到磁盘这种<em>持久化</em>形式就是RDB持...</div>
			</a>
		</div>
	</div>
</div>
<div class="recommend-item-box type_blog clearfix" data-url="https://blog.csdn.net/weixin_44635830/article/details/108178465" data-report-view="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6650.10&quot;,&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~BlogCommendFromBaidu~default-10.no_search_link\&quot;,\&quot;dist_request_id\&quot;:\&quot;1635841541913_15264\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1635841541913_15264&quot;,&quot;ab_strategy&quot;:&quot;ctrlist&quot;,&quot;index&quot;:&quot;10&quot;,&quot;strategy&quot;:&quot;2~default~BlogCommendFromBaidu~default&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/weixin_44635830/article/details/108178465&quot;}">
	<div class="content-box">
		<div class="content-blog display-flex">
			<div class="title-box">
				<a href="https://blog.csdn.net/weixin_44635830/article/details/108178465" class="tit" target="_blank" data-report-click="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6650.10&quot;,&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~BlogCommendFromBaidu~default-10.no_search_link\&quot;,\&quot;dist_request_id\&quot;:\&quot;1635841541913_15264\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1635841541913_15264&quot;,&quot;ab_strategy&quot;:&quot;ctrlist&quot;,&quot;index&quot;:&quot;10&quot;,&quot;strategy&quot;:&quot;2~default~BlogCommendFromBaidu~default&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/weixin_44635830/article/details/108178465&quot;}" data-report-query="spm=1001.2101.3001.6650.10&amp;utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7Edefault-10.no_search_link&amp;depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7Edefault-10.no_search_link">
					<div class="left ellipsis-online ellipsis-online-1">《<em>Redis</em>核心原理<em>与</em>实战》学习笔记2——<em>Redis</em><em>持久化</em></div>
				</a>
			</div>
			<div class="info-box display-flex">
				<div class="info">
					<a href="https://blog.csdn.net/weixin_44635830" target="_blank"><span class="blog-title">weixin_44635830的博客</span></a>
				</div>
				<div class="info display-flex">
					<span class="info-block time">08-23</span>
					<span class="info-block read"><img class="read-img" src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/readCountWhite.png" alt="">
					37
					</span>
				</div>
			</div>
		</div>
		<div class="desc-box">
			<a href="https://blog.csdn.net/weixin_44635830/article/details/108178465" target="_blank" data-report-click="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6650.10&quot;,&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~BlogCommendFromBaidu~default-10.no_search_link\&quot;,\&quot;dist_request_id\&quot;:\&quot;1635841541913_15264\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1635841541913_15264&quot;,&quot;ab_strategy&quot;:&quot;ctrlist&quot;,&quot;index&quot;:&quot;10&quot;,&quot;strategy&quot;:&quot;2~default~BlogCommendFromBaidu~default&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/weixin_44635830/article/details/108178465&quot;}" data-report-query="spm=1001.2101.3001.6650.10&amp;utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7Edefault-10.no_search_link&amp;depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7Edefault-10.no_search_link">
				<div class="desc ellipsis-online ellipsis-online-1">一、概念
<em>Redis</em>的读写都是在<em>内存</em>中，所以它的性能较高。但<em>内存</em>中的数据会随着服务器的重启而丢失，为了保证数据不丢失，因此需要将<em>内存</em>中的数据存储到磁盘，以便<em>Redis</em>重启时能够从磁盘中恢复原有数据，<em>Redis</em><em>内存</em>数据保存到磁盘的这个过程就叫做<em>Redis</em><em>持久化</em>。
二、<em>持久化</em>的方式
1、快照方式（RDB）
RDB，<em>Redis</em> DataBase，将某一个时刻的<em>内存</em>数据，以二进制的方式写入磁盘。
2、文件追加方式（AOF）
AOF，Append Only File，记录所有的操作命令，并以文本的形式追加到文件中。
</div>
			</a>
		</div>
	</div>
</div>
<div class="recommend-item-box type_blog clearfix" data-url="https://blog.csdn.net/weixin_51954021/article/details/110727690" data-report-view="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6650.11&quot;,&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~BlogCommendFromBaidu~default-11.no_search_link\&quot;,\&quot;dist_request_id\&quot;:\&quot;1635841541913_15264\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1635841541913_15264&quot;,&quot;ab_strategy&quot;:&quot;ctrlist&quot;,&quot;index&quot;:&quot;11&quot;,&quot;strategy&quot;:&quot;2~default~BlogCommendFromBaidu~default&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/weixin_51954021/article/details/110727690&quot;}">
	<div class="content-box">
		<div class="content-blog display-flex">
			<div class="title-box">
				<a href="https://blog.csdn.net/weixin_51954021/article/details/110727690" class="tit" target="_blank" data-report-click="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6650.11&quot;,&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~BlogCommendFromBaidu~default-11.no_search_link\&quot;,\&quot;dist_request_id\&quot;:\&quot;1635841541913_15264\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1635841541913_15264&quot;,&quot;ab_strategy&quot;:&quot;ctrlist&quot;,&quot;index&quot;:&quot;11&quot;,&quot;strategy&quot;:&quot;2~default~BlogCommendFromBaidu~default&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/weixin_51954021/article/details/110727690&quot;}" data-report-query="spm=1001.2101.3001.6650.11&amp;utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7Edefault-11.no_search_link&amp;depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7Edefault-11.no_search_link">
					<div class="left ellipsis-online ellipsis-online-1"><em>redis</em>的两种<em>持久化</em>的机制，我又有了全新的认识</div>
					<div class="tag">最新发布</div>
				</a>
			</div>
			<div class="info-box display-flex">
				<div class="info">
					<a href="https://blog.csdn.net/weixin_51954021" target="_blank"><span class="blog-title">weixin_51954021的博客</span></a>
				</div>
				<div class="info display-flex">
					<span class="info-block time">12-05</span>
					<span class="info-block read"><img class="read-img" src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/readCountWhite.png" alt="">
					28
					</span>
				</div>
			</div>
		</div>
		<div class="desc-box">
			<a href="https://blog.csdn.net/weixin_51954021/article/details/110727690" target="_blank" data-report-click="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6650.11&quot;,&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~BlogCommendFromBaidu~default-11.no_search_link\&quot;,\&quot;dist_request_id\&quot;:\&quot;1635841541913_15264\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1635841541913_15264&quot;,&quot;ab_strategy&quot;:&quot;ctrlist&quot;,&quot;index&quot;:&quot;11&quot;,&quot;strategy&quot;:&quot;2~default~BlogCommendFromBaidu~default&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/weixin_51954021/article/details/110727690&quot;}" data-report-query="spm=1001.2101.3001.6650.11&amp;utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7Edefault-11.no_search_link&amp;depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7Edefault-11.no_search_link">
				<div class="desc ellipsis-online ellipsis-online-1"><em>redis</em>提供了两种<em>持久化</em>的机制 RDB和AOF机制

RDB(<em>redis</em> Database):RDB保存某一个时间点之前的快照数据。

AOF(Append-Only File):指所有的命令行记录以<em>redis</em>命令请求协议的格式完全<em>持久化</em>存储保存为aof文件

<em>混合</em><em>持久化</em>(4.0版本以后)：指进行AOF重写时，子进程将当前时间点的数据快照保存为RDB文件格式，而后将父进程累计命令保存为AOF格式。

RDB快照有两种触发方式

1:未通过<em>配置</em>参数，如下：

通过一定的时间周期内看，命令执行的个数，超过阈值</div>
			</a>
		</div>
	</div>
</div>
<div class="recommend-item-box type_blog clearfix" data-url="https://blog.csdn.net/weixin_37696997/article/details/81588014" data-report-view="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6650.12&quot;,&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~BlogCommendFromBaidu~default-12.no_search_link\&quot;,\&quot;dist_request_id\&quot;:\&quot;1635841541913_15264\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1635841541913_15264&quot;,&quot;ab_strategy&quot;:&quot;ctrlist&quot;,&quot;index&quot;:&quot;12&quot;,&quot;strategy&quot;:&quot;2~default~BlogCommendFromBaidu~default&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/weixin_37696997/article/details/81588014&quot;}">
	<div class="content-box">
		<div class="content-blog display-flex">
			<div class="title-box">
				<a href="https://blog.csdn.net/weixin_37696997/article/details/81588014" class="tit" target="_blank" data-report-click="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6650.12&quot;,&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~BlogCommendFromBaidu~default-12.no_search_link\&quot;,\&quot;dist_request_id\&quot;:\&quot;1635841541913_15264\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1635841541913_15264&quot;,&quot;ab_strategy&quot;:&quot;ctrlist&quot;,&quot;index&quot;:&quot;12&quot;,&quot;strategy&quot;:&quot;2~default~BlogCommendFromBaidu~default&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/weixin_37696997/article/details/81588014&quot;}" data-report-query="spm=1001.2101.3001.6650.12&amp;utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7Edefault-12.no_search_link&amp;depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7Edefault-12.no_search_link">
					<div class="left ellipsis-online ellipsis-online-1"><em>redis</em><em>持久化</em><em>配置</em></div>
				</a>
			</div>
			<div class="info-box display-flex">
				<div class="info">
					<a href="https://blog.csdn.net/weixin_37696997" target="_blank"><span class="blog-title">代码界的小姑娘的博客</span></a>
				</div>
				<div class="info display-flex">
					<span class="info-block time">08-11</span>
					<span class="info-block read"><img class="read-img" src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/readCountWhite.png" alt="">
					582
					</span>
				</div>
			</div>
		</div>
		<div class="desc-box">
			<a href="https://blog.csdn.net/weixin_37696997/article/details/81588014" target="_blank" data-report-click="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6650.12&quot;,&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~BlogCommendFromBaidu~default-12.no_search_link\&quot;,\&quot;dist_request_id\&quot;:\&quot;1635841541913_15264\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1635841541913_15264&quot;,&quot;ab_strategy&quot;:&quot;ctrlist&quot;,&quot;index&quot;:&quot;12&quot;,&quot;strategy&quot;:&quot;2~default~BlogCommendFromBaidu~default&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/weixin_37696997/article/details/81588014&quot;}" data-report-query="spm=1001.2101.3001.6650.12&amp;utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7Edefault-12.no_search_link&amp;depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7Edefault-12.no_search_link">
				<div class="desc ellipsis-online ellipsis-online-1">
<em>redis</em><em>持久化</em>




1：RDB(<em>redis</em> database)--快照
2: AOF(append only file)--日志


RDB介绍


1：RDB是在指定的时间间隔内将<em>内存</em>中的数据集快照写入磁盘, 也就是行话将的Snapshot快照, 它恢复时是将快照文件直接读到<em>内存</em>里。
2：<em>Redis</em>会单独创(fork)一个子进程进行<em>持久化</em>, 会先将数据写入到一个临时文件中, 待<em>持久化</em>过程...</div>
			</a>
		</div>
	</div>
</div>
<div class="recommend-item-box type_blog clearfix" data-url="https://blog.csdn.net/vtopqx/article/details/46833513" data-report-view="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6650.13&quot;,&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~BlogCommendFromBaidu~default-13.no_search_link\&quot;,\&quot;dist_request_id\&quot;:\&quot;1635841541913_15264\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1635841541913_15264&quot;,&quot;ab_strategy&quot;:&quot;ctrlist&quot;,&quot;index&quot;:&quot;13&quot;,&quot;strategy&quot;:&quot;2~default~BlogCommendFromBaidu~default&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/vtopqx/article/details/46833513&quot;}">
	<div class="content-box">
		<div class="content-blog display-flex">
			<div class="title-box">
				<a href="https://blog.csdn.net/vtopqx/article/details/46833513" class="tit" target="_blank" data-report-click="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6650.13&quot;,&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~BlogCommendFromBaidu~default-13.no_search_link\&quot;,\&quot;dist_request_id\&quot;:\&quot;1635841541913_15264\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1635841541913_15264&quot;,&quot;ab_strategy&quot;:&quot;ctrlist&quot;,&quot;index&quot;:&quot;13&quot;,&quot;strategy&quot;:&quot;2~default~BlogCommendFromBaidu~default&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/vtopqx/article/details/46833513&quot;}" data-report-query="spm=1001.2101.3001.6650.13&amp;utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7Edefault-13.no_search_link&amp;depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7Edefault-13.no_search_link">
					<div class="left ellipsis-online ellipsis-online-1"><em>Redis</em><em>持久化</em><em>配置</em></div>
					<div class="tag">热门推荐</div>
				</a>
			</div>
			<div class="info-box display-flex">
				<div class="info">
					<a href="https://blog.csdn.net/vtopqx" target="_blank"><span class="blog-title">漫天雪_昆仑巅</span></a>
				</div>
				<div class="info display-flex">
					<span class="info-block time">07-10</span>
					<span class="info-block read"><img class="read-img" src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/readCountWhite.png" alt="">
					4万+
					</span>
				</div>
			</div>
		</div>
		<div class="desc-box">
			<a href="https://blog.csdn.net/vtopqx/article/details/46833513" target="_blank" data-report-click="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6650.13&quot;,&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~BlogCommendFromBaidu~default-13.no_search_link\&quot;,\&quot;dist_request_id\&quot;:\&quot;1635841541913_15264\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1635841541913_15264&quot;,&quot;ab_strategy&quot;:&quot;ctrlist&quot;,&quot;index&quot;:&quot;13&quot;,&quot;strategy&quot;:&quot;2~default~BlogCommendFromBaidu~default&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/vtopqx/article/details/46833513&quot;}" data-report-query="spm=1001.2101.3001.6650.13&amp;utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7Edefault-13.no_search_link&amp;depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7Edefault-13.no_search_link">
				<div class="desc ellipsis-online ellipsis-online-1">对于<em>Redis</em>来说是存储在缓存之中的，因此缓存数据丢失问题一直是程序员们相当关注的话题，

因此对缓存中的数据定时进行<em>持久化</em>的必要性就相当突出了，<em>Redis</em><em>持久化</em>分别有RDB和AOF两种方式，

以下是这两种方式的相关<em>配置</em>：

1&nbsp;&nbsp;第一种: RDB<em>持久化</em>方式

1.1 概述

默认<em>redis</em>是会以快照的形式将数据<em>持久化</em>到磁盘的（一个二进制文件，dump.rdb，这个文件名字可以指定），在<em>配置</em>文件...</div>
			</a>
		</div>
	</div>
</div>
<div class="recommend-item-box type_blog clearfix" data-url="https://blog.csdn.net/piaodinghuo4319/article/details/96426566" data-report-view="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6650.14&quot;,&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~BlogCommendFromBaidu~default-14.no_search_link\&quot;,\&quot;dist_request_id\&quot;:\&quot;1635841541913_15264\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1635841541913_15264&quot;,&quot;ab_strategy&quot;:&quot;ctrlist&quot;,&quot;index&quot;:&quot;14&quot;,&quot;strategy&quot;:&quot;2~default~BlogCommendFromBaidu~default&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/piaodinghuo4319/article/details/96426566&quot;}">
	<div class="content-box">
		<div class="content-blog display-flex">
			<div class="title-box">
				<a href="https://blog.csdn.net/piaodinghuo4319/article/details/96426566" class="tit" target="_blank" data-report-click="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6650.14&quot;,&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~BlogCommendFromBaidu~default-14.no_search_link\&quot;,\&quot;dist_request_id\&quot;:\&quot;1635841541913_15264\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1635841541913_15264&quot;,&quot;ab_strategy&quot;:&quot;ctrlist&quot;,&quot;index&quot;:&quot;14&quot;,&quot;strategy&quot;:&quot;2~default~BlogCommendFromBaidu~default&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/piaodinghuo4319/article/details/96426566&quot;}" data-report-query="spm=1001.2101.3001.6650.14&amp;utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7Edefault-14.no_search_link&amp;depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7Edefault-14.no_search_link">
					<div class="left ellipsis-online ellipsis-online-1"><em>Redis</em>常用<em>配置</em>及<em>持久化</em></div>
				</a>
			</div>
			<div class="info-box display-flex">
				<div class="info">
					<a href="https://blog.csdn.net/piaodinghuo4319" target="_blank"><span class="blog-title">zh的博客</span></a>
				</div>
				<div class="info display-flex">
					<span class="info-block time">07-18</span>
					<span class="info-block read"><img class="read-img" src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/readCountWhite.png" alt="">
					559
					</span>
				</div>
			</div>
		</div>
		<div class="desc-box">
			<a href="https://blog.csdn.net/piaodinghuo4319/article/details/96426566" target="_blank" data-report-click="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6650.14&quot;,&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~BlogCommendFromBaidu~default-14.no_search_link\&quot;,\&quot;dist_request_id\&quot;:\&quot;1635841541913_15264\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1635841541913_15264&quot;,&quot;ab_strategy&quot;:&quot;ctrlist&quot;,&quot;index&quot;:&quot;14&quot;,&quot;strategy&quot;:&quot;2~default~BlogCommendFromBaidu~default&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/piaodinghuo4319/article/details/96426566&quot;}" data-report-query="spm=1001.2101.3001.6650.14&amp;utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7Edefault-14.no_search_link&amp;depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7Edefault-14.no_search_link">
				<div class="desc ellipsis-online ellipsis-online-1"><em>Redis</em>常用<em>配置</em>及<em>持久化</em><em>redis</em>.conf<em>持久化</em>方式1.RDB（<em>redis</em>默认<em>持久化</em>方式）2.AOF<em>持久化</em>3.RDB、AOF对比4.<em>混合</em><em>持久化</em>
<em>redis</em>.conf

1)注释掉
#bind 127.0.0.1
2)<em>Redis</em>默认不是以守护进程的方式运行，可以通过该<em>配置</em>项修改，使用yes启用守护进程，
daemonize yes
3)关闭保护模式
protect<em>ed</em>-mode no
4)设置密...</div>
			</a>
		</div>
	</div>
</div>
<div class="recommend-item-box type_blog clearfix" data-url="https://blog.csdn.net/u010028869/article/details/51792197" data-report-view="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6650.15&quot;,&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~BlogCommendFromBaidu~default-15.no_search_link\&quot;,\&quot;dist_request_id\&quot;:\&quot;1635841541913_15264\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1635841541913_15264&quot;,&quot;ab_strategy&quot;:&quot;ctrlist&quot;,&quot;index&quot;:&quot;15&quot;,&quot;strategy&quot;:&quot;2~default~BlogCommendFromBaidu~default&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/u010028869/article/details/51792197&quot;}">
	<div class="content-box">
		<div class="content-blog display-flex">
			<div class="title-box">
				<a href="https://blog.csdn.net/u010028869/article/details/51792197" class="tit" target="_blank" data-report-click="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6650.15&quot;,&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~BlogCommendFromBaidu~default-15.no_search_link\&quot;,\&quot;dist_request_id\&quot;:\&quot;1635841541913_15264\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1635841541913_15264&quot;,&quot;ab_strategy&quot;:&quot;ctrlist&quot;,&quot;index&quot;:&quot;15&quot;,&quot;strategy&quot;:&quot;2~default~BlogCommendFromBaidu~default&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/u010028869/article/details/51792197&quot;}" data-report-query="spm=1001.2101.3001.6650.15&amp;utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7Edefault-15.no_search_link&amp;depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7Edefault-15.no_search_link">
					<div class="left ellipsis-online ellipsis-online-1"><em>Redis</em>的<em>持久化</em>-RDB</div>
				</a>
			</div>
			<div class="info-box display-flex">
				<div class="info">
					<a href="https://blog.csdn.net/u010028869" target="_blank"><span class="blog-title">陌上花开，可缓缓归矣</span></a>
				</div>
				<div class="info display-flex">
					<span class="info-block time">06-30</span>
					<span class="info-block read"><img class="read-img" src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/readCountWhite.png" alt="">
					5511
					</span>
				</div>
			</div>
		</div>
		<div class="desc-box">
			<a href="https://blog.csdn.net/u010028869/article/details/51792197" target="_blank" data-report-click="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6650.15&quot;,&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~BlogCommendFromBaidu~default-15.no_search_link\&quot;,\&quot;dist_request_id\&quot;:\&quot;1635841541913_15264\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1635841541913_15264&quot;,&quot;ab_strategy&quot;:&quot;ctrlist&quot;,&quot;index&quot;:&quot;15&quot;,&quot;strategy&quot;:&quot;2~default~BlogCommendFromBaidu~default&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/u010028869/article/details/51792197&quot;}" data-report-query="spm=1001.2101.3001.6650.15&amp;utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7Edefault-15.no_search_link&amp;depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7Edefault-15.no_search_link">
				<div class="desc ellipsis-online ellipsis-online-1"><em>Redis</em>优秀的性能是由于其将所有的数据都存储在<em>内存</em>中，同样memcach<em>ed</em>也是这样做的，但是为什么<em>Redis</em>能够脱颖而出呢，很大程度上是因为<em>Redis</em>有出色的<em>持久化</em>机制，能够保证服务器重启后，数据不会丢失。下面来看看<em>Redis</em>是如何<em>持久化</em>的。<em>Redis</em>支持两种方式的<em>持久化</em>，一种是RDB方式，一种是AOF方式。这两种方式可以单独使用其中一种，或者<em>混合</em>使用。 
RDB方式介绍RDB方式是通过快照完成</div>
			</a>
		</div>
	</div>
</div>
<div class="recommend-item-box type_blog clearfix" data-url="https://blog.csdn.net/qq_34021712/article/details/71774495" data-report-view="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6650.16&quot;,&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~BlogCommendFromBaidu~default-16.no_search_link\&quot;,\&quot;dist_request_id\&quot;:\&quot;1635841541913_15264\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1635841541913_15264&quot;,&quot;ab_strategy&quot;:&quot;ctrlist&quot;,&quot;index&quot;:&quot;16&quot;,&quot;strategy&quot;:&quot;2~default~BlogCommendFromBaidu~default&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/qq_34021712/article/details/71774495&quot;}">
	<div class="content-box">
		<div class="content-blog display-flex">
			<div class="title-box">
				<a href="https://blog.csdn.net/qq_34021712/article/details/71774495" class="tit" target="_blank" data-report-click="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6650.16&quot;,&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~BlogCommendFromBaidu~default-16.no_search_link\&quot;,\&quot;dist_request_id\&quot;:\&quot;1635841541913_15264\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1635841541913_15264&quot;,&quot;ab_strategy&quot;:&quot;ctrlist&quot;,&quot;index&quot;:&quot;16&quot;,&quot;strategy&quot;:&quot;2~default~BlogCommendFromBaidu~default&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/qq_34021712/article/details/71774495&quot;}" data-report-query="spm=1001.2101.3001.6650.16&amp;utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7Edefault-16.no_search_link&amp;depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7Edefault-16.no_search_link">
					<div class="left ellipsis-online ellipsis-online-1"><em>redis</em><em>持久化</em>方式<em>配置</em>详解</div>
				</a>
			</div>
			<div class="info-box display-flex">
				<div class="info">
					<a href="https://blog.csdn.net/qq_34021712" target="_blank"><span class="blog-title">这个名字想了很久</span></a>
				</div>
				<div class="info display-flex">
					<span class="info-block time">05-13</span>
					<span class="info-block read"><img class="read-img" src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/readCountWhite.png" alt="">
					1427
					</span>
				</div>
			</div>
		</div>
		<div class="desc-box">
			<a href="https://blog.csdn.net/qq_34021712/article/details/71774495" target="_blank" data-report-click="{&quot;ab&quot;:&quot;new&quot;,&quot;spm&quot;:&quot;1001.2101.3001.6650.16&quot;,&quot;mod&quot;:&quot;popu_387&quot;,&quot;extra&quot;:&quot;{\&quot;highlightScore\&quot;:0.0,\&quot;utm_medium\&quot;:\&quot;distribute.pc_relevant.none-task-blog-2~default~BlogCommendFromBaidu~default-16.no_search_link\&quot;,\&quot;dist_request_id\&quot;:\&quot;1635841541913_15264\&quot;}&quot;,&quot;dist_request_id&quot;:&quot;1635841541913_15264&quot;,&quot;ab_strategy&quot;:&quot;ctrlist&quot;,&quot;index&quot;:&quot;16&quot;,&quot;strategy&quot;:&quot;2~default~BlogCommendFromBaidu~default&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/qq_34021712/article/details/71774495&quot;}" data-report-query="spm=1001.2101.3001.6650.16&amp;utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7Edefault-16.no_search_link&amp;depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7Edefault-16.no_search_link">
				<div class="desc ellipsis-online ellipsis-online-1"><em>redis</em>支持两种<em>持久化</em>方式：一种是RDB方式,另一种是AOF方式可以单独使用,也可以两者结合使用。
1 第一种：RDB<em>持久化</em>方式
1.1 概述：
RDB方式是通过快照完成的,当符合一定的条件时,<em>redis</em>会自动将<em>内存</em>中的所有数据进行快照并且存储到硬盘上，默认存储在<em>redis</em>根目录的dump.rdb文件中(文件名在<em>配置</em>文件中dbfilename),进行快照的条件在<em>redis</em>.conf<em>配置</em>文件</div>
			</a>
		</div>
	</div>
</div>
            </div>
            <div class="template-box">
                <span>©️2021 CSDN</span>
                <span>皮肤主题: 大白</span>
                <span> 设计师:CSDN官方博客</span>
                <span>
                    <a href="https://blog.csdn.net/" class="back-home c-blue c-blue-hover c-blue-focus">返回首页</a>
                </span>
            </div>
<div class="blog-footer-bottom" style="margin-top:10px;">
        <div id="copyright-box" class="">
          <div id="csdn-copyright-footer" class="column small">
            <ul class="footer-column-t">
            <li>
              <a href="https://www.csdn.net/company/index.html#about" target="_blank">关于我们</a>
            </li>
            <li>
              <a href="https://www.csdn.net/company/index.html#recruit" target="_blank">招贤纳士</a>
            </li>
            <li>
              <a href="https://www.csdn.net/company/index.html#advertisement" target="_blank">广告服务</a>
            </li>
            <li>
              <a href="https://plugin.csdn.net/" target="_blank">开发助手</a>
            </li>
            <li>
              <img src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/tel.png" alt="">
              <span>400-660-0108</span>
            </li>
            <li>
              <img src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/email.png" alt="">
              <a href="mailto:webmaster@csdn.net" target="_blank">kefu@csdn.net</a>
            </li>
            <li>
              <img src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/cs.png" alt="">
              <a href="https://csdn.s2.udesk.cn/im_client/?web_plugin_id=29181" target="_blank">在线客服</a>
            </li>
            <li>
              工作时间&nbsp;8:30-22:00
            </li>
          </ul>
            <ul class="footer-column-b">
            <li><img src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/badge.png" alt=""><a href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=11010502030143" rel="noreferrer" target="_blank">公安备案号11010502030143</a></li>
            <li><a href="http://beian.miit.gov.cn/publish/query/indexFirst.action" rel="noreferrer" target="_blank">京ICP备19004658号</a></li>
            <li><a href="https://csdnimg.cn/release/live_fe/culture_license.png" rel="noreferrer" target="_blank">京网文〔2020〕1039-165号</a></li>
            <li><a href="https://csdnimg.cn/cdn/content-toolbar/csdn-ICP.png" target="_blank">经营性网站备案信息</a></li>
            <li><a href="http://www.bjjubao.org/" target="_blank">北京互联网违法和不良信息举报中心</a></li>
            <li><a href="http://www.cyberpolice.cn/" target="_blank">网络110报警服务</a></li>
            <li><a href="http://www.12377.cn/" target="_blank">中国互联网举报中心</a></li>
            <li><a href="https://download.csdn.net/index.php/tutelage/" target="_blank">家长监护</a></li>
            <li><a href="https://chrome.google.com/webstore/detail/csdn%E5%BC%80%E5%8F%91%E8%80%85%E5%8A%A9%E6%89%8B/kfkdboecolemdjodhmhmcibjocfopejo?hl=zh-CN" target="_blank">Chrome商店下载</a></li>
            <li>©1999-2021北京创新乐知网络技术有限公司</li>
            <li><a href="https://www.csdn.net/company/index.html#statement" target="_blank">版权与免责声明</a></li>
            <li><a href="https://blog.csdn.net/blogdevteam/article/details/90369522" target="_blank">版权申诉</a></li>
            <li><a href="https://img-home.csdnimg.cn/images/20210414021151.jpg" target="_blank">出版物许可证</a></li>
            <li><a href="https://img-home.csdnimg.cn/images/20210414021142.jpg" target="_blank">营业执照</a></li>
          </ul>
          </div>
        </div>
      </div>
<script src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/csdn-footer.js.下载" data-isfootertrack="false" type="text/javascript"></script>
<script type="text/javascript">
    window.csdn.csdnFooter.options = {
        el: '.blog-footer-bottom',
        type: 2
    }
</script>        </main>
<aside class="blog_container_aside">
	<div id="asideProfile" class="aside-box">
    <div class="profile-intro d-flex">
        <div class="avatar-box d-flex justify-content-center flex-column">
            <a href="https://blog.csdn.net/lghuntfor" data-report-click="{&quot;mod&quot;:&quot;popu_379&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4121&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/lghuntfor&quot;,&quot;ab&quot;:&quot;new&quot;}">
                <img src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/3_lghuntfor" class="avatar_pic">
            </a>
        </div>
        <div class="user-info d-flex flex-column profile-intro-name-box">
            <div class="profile-intro-name-boxTop">
                <a href="https://blog.csdn.net/lghuntfor" class="" id="uid" title="lghuntfor" data-report-click="{&quot;mod&quot;:&quot;popu_379&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4122&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/lghuntfor&quot;,&quot;ab&quot;:&quot;new&quot;}">
                    <span class="name " username="lghuntfor">lghuntfor</span>
                </a>
                <span>
                </span>
                <span class="flag expert-blog">
                <span class="bubble">CSDN认证博客专家</span>
                </span>
                <span class="flag company-blog">
                <span class="bubble">CSDN认证企业博客</span>
                </span>
            </div>
            <div class="profile-intro-name-boxFooter">
                <span class="personal-home-page personal-home-years">码龄11年</span>
                    <span class="personal-home-page">
                    <a class="personal-home-certification" href="https://i.csdn.net/#/uc/profile?utm_source=14998968" target="_blank" title="暂无认证">
                    <img src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/nocErtification.png" alt="">
                    暂无认证
                    </a>
                    </span>
            </div>
        </div>
    </div>
    <div class="data-info d-flex item-tiling">
        <dl class="text-center" title="13">
            <a href="https://blog.csdn.net/lghuntfor" data-report-click="{&quot;mod&quot;:&quot;1598321000_001&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4310&quot;}" data-report-query="t=1">  
                <dt><span class="count">13</span></dt>
                <dd class="font">原创</dd>
            </a>
        </dl>
        <dl class="text-center" data-report-click="{&quot;mod&quot;:&quot;1598321000_002&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4311&quot;}" title="260104">
            <a href="https://blog.csdn.net/rank/list/weekly" target="_blank">
                <dt><span class="count">26万+</span></dt>
                <dd class="font">周排名</dd>
            </a>
        </dl>
        <dl class="text-center" title="535023">
            <a href="https://blog.csdn.net/rank/list/total" data-report-click="{&quot;mod&quot;:&quot;1598321000_003&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4312&quot;}" target="_blank">
                <dt><span class="count">53万+</span></dt>
                <dd class="font">总排名</dd>
            </a>
        </dl>
        <dl class="text-center" style="min-width:58px" title="23951">  
            <dt><span class="count">2万+</span></dt>
            <dd>访问</dd>
        </dl>
        <dl class="text-center" title="2级,点击查看等级说明">
            <dt><a href="https://blog.csdn.net/blogdevteam/article/details/103478461" target="_blank">
                <img class="level" src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/blog2.png">
            </a>
            </dt>
            <dd>等级</dd>
        </dl>
    </div>
    <div class="item-rank"></div>
    <div class="data-info d-flex item-tiling">
        <dl class="text-center" title="394">
            <dt><span class="count">394</span></dt>
            <dd>积分</dd>
        </dl>
         <dl class="text-center" id="fanBox" title="14">
            <dt><span class="count" id="fan">14</span></dt>
            <dd>粉丝</dd>
        </dl>
        <dl class="text-center" title="22">
            <dt><span class="count">22</span></dt>
            <dd>获赞</dd>
        </dl>
        <dl class="text-center" title="2">
            <dt><span class="count">2</span></dt>
            <dd>评论</dd>
        </dl>
        <dl class="text-center" title="36">
            <dt><span class="count">36</span></dt>
            <dd>收藏</dd>
        </dl>
    </div>
    <div class="aside-box-footer">
        <div class="badge-box d-flex">
            <div class="badge d-flex">
                <div class="icon-badge" title="勤写标兵Lv1">
                    <div class="mouse-box">
                        <img class="medal-img" data-report-click="{&quot;spm&quot;:&quot;3001.4296&quot;}" src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/qixiebiaobing1@240.png" alt="勤写标兵Lv1">
                    </div>
                </div>
                <div class="icon-badge" title="分享小兵">
                    <div class="mouse-box">
                        <img class="medal-img" data-report-click="{&quot;spm&quot;:&quot;3001.4296&quot;}" src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/fengxiangxiaobing@240.png" alt="分享小兵">
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="profile-intro-name-boxOpration">
        <div class="opt-letter-watch-box">
        <a class="bt-button personal-letter" href="https://im.csdn.net/chat/lghuntfor" target="_blank" rel="noopener">私信</a>
        </div>
        <div class="opt-letter-watch-box"> 
            <a class="personal-watch bt-button" id="btnAttent">关注</a>  
        </div>
    </div>
</div>
<div id="asideSearchArticle" class="aside-box">
	<div class="aside-content search-comter">
    <div class="aside-search aside-search-blog">         
        <input type="text" class="input-serch-blog" name="" autocomplete="off" value="" id="search-blog-words" placeholder="搜博主文章">
        <a class="btn-search-blog">
                    <img src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/csdn-sou.png">
        </a>
    </div>
    </div>
</div>


<div id="asideHotArticle" class="aside-box">
	<h3 class="aside-title">热门文章</h3>
	<div class="aside-content">
		<ul class="hotArticle-list">
			<li>
				<a href="https://blog.csdn.net/lghuntfor/article/details/51052737" target="_blank" data-report-click="{&quot;mod&quot;:&quot;popu_541&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4139&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/lghuntfor/article/details/51052737&quot;,&quot;ab&quot;:&quot;new&quot;}">
				Jvm垃圾回收器详细
					<img src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/readCountWhite.png" alt="">
					<span class="read">8575</span>
                </a>
			</li>
			<li>
				<a href="https://blog.csdn.net/lghuntfor/article/details/51052554" target="_blank" data-report-click="{&quot;mod&quot;:&quot;popu_541&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4139&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/lghuntfor/article/details/51052554&quot;,&quot;ab&quot;:&quot;new&quot;}">
				Jvm以及Jvm性能参数优化
					<img src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/readCountWhite.png" alt="">
					<span class="read">6266</span>
                </a>
			</li>
			<li>
				<a href="https://blog.csdn.net/lghuntfor/article/details/50941910" target="_blank" data-report-click="{&quot;mod&quot;:&quot;popu_541&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4139&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/lghuntfor/article/details/50941910&quot;,&quot;ab&quot;:&quot;new&quot;}">
				Linux+Nginx+Tomcat+Redis实现负载均衡,应用集群及session共享
					<img src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/readCountWhite.png" alt="">
					<span class="read">3171</span>
                </a>
			</li>
			<li>
				<a href="https://blog.csdn.net/lghuntfor/article/details/88606444" target="_blank" data-report-click="{&quot;mod&quot;:&quot;popu_541&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4139&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/lghuntfor/article/details/88606444&quot;,&quot;ab&quot;:&quot;new&quot;}">
				HTTP响应状态码详解
					<img src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/readCountWhite.png" alt="">
					<span class="read">1372</span>
                </a>
			</li>
			<li>
				<a href="https://blog.csdn.net/lghuntfor/article/details/50941927" target="_blank" data-report-click="{&quot;mod&quot;:&quot;popu_541&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4139&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/lghuntfor/article/details/50941927&quot;,&quot;ab&quot;:&quot;new&quot;}">
				Linux服务器架设篇之(一)--源码安装mysql
					<img src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/readCountWhite.png" alt="">
					<span class="read">675</span>
                </a>
			</li>
		</ul>
	</div>
</div>
<div id="asideCategory" class="aside-box flexible-box">
    <h3 class="aside-title">分类专栏</h3>
    <div class="aside-content">
        <ul>
            <li class="">
                <a class="clearfix" target="_blank" href="https://blog.csdn.net/lghuntfor/category_11294050.html" data-report-click="{&quot;mod&quot;:&quot;popu_537&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4137&quot;,&quot;strategy&quot;:&quot;pc付费专栏左侧入口&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/lghuntfor/category_11294050.html&quot;,&quot;ab&quot;:&quot;new&quot;}">
                    <img src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/20201014180756926.png" alt="" onerror="this.src=&#39;https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64&#39;">
                    <span class="title oneline">
                        <span class="text">Kubernetes</span>
                    </span>
                </a>
            </li>
            <li class="">
                <a class="clearfix" target="_blank" href="https://blog.csdn.net/lghuntfor/category_3228187.html" data-report-click="{&quot;mod&quot;:&quot;popu_537&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4137&quot;,&quot;strategy&quot;:&quot;pc付费专栏左侧入口&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/lghuntfor/category_3228187.html&quot;,&quot;ab&quot;:&quot;new&quot;}">
                    <img src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/20201014180756930.png" alt="" onerror="this.src=&#39;https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64&#39;">
                    <span class="title oneline">
                        <span class="text">架构</span>
                    </span>
                    <span class="count float-right">1篇</span>
                </a>
            </li>
            <li class="">
                <a class="clearfix" target="_blank" href="https://blog.csdn.net/lghuntfor/category_5835253.html" data-report-click="{&quot;mod&quot;:&quot;popu_537&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4137&quot;,&quot;strategy&quot;:&quot;pc付费专栏左侧入口&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/lghuntfor/category_5835253.html&quot;,&quot;ab&quot;:&quot;new&quot;}">
                    <img src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/20201014180756916.png" alt="" onerror="this.src=&#39;https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64&#39;">
                    <span class="title oneline">
                        <span class="text">Linux</span>
                    </span>
                    <span class="count float-right">5篇</span>
                </a>
            </li>
            <li class="">
                <a class="clearfix" target="_blank" href="https://blog.csdn.net/lghuntfor/category_5835255.html" data-report-click="{&quot;mod&quot;:&quot;popu_537&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4137&quot;,&quot;strategy&quot;:&quot;pc付费专栏左侧入口&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/lghuntfor/category_5835255.html&quot;,&quot;ab&quot;:&quot;new&quot;}">
                    <img src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/20201014180756780.png" alt="" onerror="this.src=&#39;https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64&#39;">
                    <span class="title oneline">
                        <span class="text">Java</span>
                    </span>
                    <span class="count float-right">6篇</span>
                </a>
            </li>
            <li class="">
                <a class="clearfix" target="_blank" href="https://blog.csdn.net/lghuntfor/category_6165685.html" data-report-click="{&quot;mod&quot;:&quot;popu_537&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4137&quot;,&quot;strategy&quot;:&quot;pc付费专栏左侧入口&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/lghuntfor/category_6165685.html&quot;,&quot;ab&quot;:&quot;new&quot;}">
                    <img src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/20201014180756925.png" alt="" onerror="this.src=&#39;https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64&#39;">
                    <span class="title oneline">
                        <span class="text">算法与数据结构</span>
                    </span>
                </a>
            </li>
            <li class="">
                <a class="clearfix" target="_blank" href="https://blog.csdn.net/lghuntfor/category_6165686.html" data-report-click="{&quot;mod&quot;:&quot;popu_537&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4137&quot;,&quot;strategy&quot;:&quot;pc付费专栏左侧入口&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/lghuntfor/category_6165686.html&quot;,&quot;ab&quot;:&quot;new&quot;}">
                    <img src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/20201014180756918.png" alt="" onerror="this.src=&#39;https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64&#39;">
                    <span class="title oneline">
                        <span class="text">大数据</span>
                    </span>
                </a>
            </li>
            <li class="">
                <a class="clearfix" target="_blank" href="https://blog.csdn.net/lghuntfor/category_6165810.html" data-report-click="{&quot;mod&quot;:&quot;popu_537&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4137&quot;,&quot;strategy&quot;:&quot;pc付费专栏左侧入口&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/lghuntfor/category_6165810.html&quot;,&quot;ab&quot;:&quot;new&quot;}">
                    <img src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/20201014180756926.png" alt="" onerror="this.src=&#39;https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64&#39;">
                    <span class="title oneline">
                        <span class="text">数据库</span>
                    </span>
                    <span class="count float-right">1篇</span>
                </a>
            </li>
            <li class="">
                <a class="clearfix" target="_blank" href="https://blog.csdn.net/lghuntfor/category_8750844.html" data-report-click="{&quot;mod&quot;:&quot;popu_537&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4137&quot;,&quot;strategy&quot;:&quot;pc付费专栏左侧入口&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/lghuntfor/category_8750844.html&quot;,&quot;ab&quot;:&quot;new&quot;}">
                    <img src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/20201014180756925.png" alt="" onerror="this.src=&#39;https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64&#39;">
                    <span class="title oneline">
                        <span class="text">Python</span>
                    </span>
                </a>
            </li>
            <li class="">
                <a class="clearfix" target="_blank" href="https://blog.csdn.net/lghuntfor/category_8750845.html" data-report-click="{&quot;mod&quot;:&quot;popu_537&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4137&quot;,&quot;strategy&quot;:&quot;pc付费专栏左侧入口&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/lghuntfor/category_8750845.html&quot;,&quot;ab&quot;:&quot;new&quot;}">
                    <img src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/20201014180756925.png" alt="" onerror="this.src=&#39;https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64&#39;">
                    <span class="title oneline">
                        <span class="text">网络</span>
                    </span>
                    <span class="count float-right">1篇</span>
                </a>
            </li>
        </ul>
    </div>
    <p class="text-center">
        <a class="flexible-btn" data-fbox="aside-archive"><img class="look-more" src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/arrowDownWhite.png" alt=""></a>
    </p>
</div>
<div id="asideNewComments" class="aside-box">
    <h3 class="aside-title">最新评论</h3>
    <div class="aside-content">
        <ul class="newcomment-list">
            <li>
                <a class="title text-truncate" target="_blank" href="https://blog.csdn.net/lghuntfor/article/details/50941910#comments_7332857" data-report-click="{&quot;mod&quot;:&quot;popu_542&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4231&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/lghuntfor/article/details/50941910#comments_7332857&quot;,&quot;ab&quot;:&quot;new&quot;}">Linux+Nginx+Tomcat+Redis实现负载均衡,应用集群及session共享</a>
                <p class="comment ellipsis">
                    <a href="https://blog.csdn.net/hua1586981" class="user-name" target="_blank">Andy_down: </a>
                    <span class="code-comments">使用nginx搭建集群tomcat8，redis实现session共享，文件共享问题：http://blog.csdn.net/hua1586981/article/details/78132710</span>
                </p>
            </li>
            <li>
                <a class="title text-truncate" target="_blank" href="https://blog.csdn.net/lghuntfor/article/details/51052737#comments_7163199" data-report-click="{&quot;mod&quot;:&quot;popu_542&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4231&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/lghuntfor/article/details/51052737#comments_7163199&quot;,&quot;ab&quot;:&quot;new&quot;}">Jvm垃圾回收器详细</a>
                <p class="comment ellipsis">
                    <a href="https://blog.csdn.net/u013034640" class="user-name" target="_blank">追梦的晓米: </a>
                    <span class="code-comments">讲解非常详细</span>
                </p>
            </li>
        </ul>
    </div>
</div>
<div id="asideNewNps" class="aside-box" style="display: block;">
    <h3 class="aside-title">您愿意向朋友推荐“博客详情页”吗？</h3>
    <div class="aside-content">
        <ul class="newnps-list">
            <li class="newnps-item" data-type="强烈不推荐">
                <div class="newnps-img-box">
                    <img class="newnps-img active" src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/npsFeel1.png" alt="">
                    <img class="newnps-img default" src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/npsFeelGrey1.png" alt="">
                </div>
                <div class="newnps-text">强烈不推荐</div>
            </li>
            <li class="newnps-item" data-type="不推荐">
                <div class="newnps-img-box">
                    <img class="newnps-img active" src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/npsFeel2.png" alt="">
                    <img class="newnps-img default" src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/npsFeelGrey2.png" alt="">
                </div>
                <div class="newnps-text">不推荐</div>
            </li>
            <li class="newnps-item" data-type="一般般">
                <div class="newnps-img-box">
                    <img class="newnps-img active" src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/npsFeel3.png" alt="">
                    <img class="newnps-img default" src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/npsFeelGrey3.png" alt="">
                </div>
                <div class="newnps-text">一般般</div>
            </li>
            <li class="newnps-item" data-type="推荐">
                <div class="newnps-img-box">
                    <img class="newnps-img active" src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/npsFeel4.png" alt="">
                    <img class="newnps-img default" src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/npsFeelGrey4.png" alt="">
                </div>
                <div class="newnps-text">推荐</div>
            </li>
            <li class="newnps-item" data-type="强烈推荐">
                <div class="newnps-img-box">
                    <img class="newnps-img active" src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/npsFeel5.png" alt="">
                    <img class="newnps-img default" src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/npsFeelGrey5.png" alt="">
                </div>
                <div class="newnps-text">强烈推荐</div>
            </li>
        </ul>
        <div class="newnps-form-box">
        <div class="newnps-form">
            <input type="text" placeholder="请输入建议或反馈后点击提交" class="newnps-input">
            <span class="newnps-btn">提交</span>
        </div>
        </div>
    </div>
</div>
<div id="asideArchive" class="aside-box" style="display:block!important; width:300px;">
    <h3 class="aside-title">最新文章</h3>
    <div class="aside-content">
        <ul class="inf_list clearfix">
            <li class="clearfix">
            <a href="https://blog.csdn.net/lghuntfor/article/details/109710913" target="_blank" data-report-click="{&quot;mod&quot;:&quot;popu_382&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4136&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/lghuntfor/article/details/109710913&quot;,&quot;ab&quot;:&quot;new&quot;}" data-report-view="{&quot;mod&quot;:&quot;popu_382&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/lghuntfor/article/details/109710913&quot;,&quot;ab&quot;:&quot;new&quot;}">一套基于模版的代码生成器</a>
            </li>
            <li class="clearfix">
            <a href="https://blog.csdn.net/lghuntfor/article/details/102529185" target="_blank" data-report-click="{&quot;mod&quot;:&quot;popu_382&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4136&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/lghuntfor/article/details/102529185&quot;,&quot;ab&quot;:&quot;new&quot;}" data-report-view="{&quot;mod&quot;:&quot;popu_382&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/lghuntfor/article/details/102529185&quot;,&quot;ab&quot;:&quot;new&quot;}">DNS服务器安装与配置</a>
            </li>
            <li class="clearfix">
            <a href="https://blog.csdn.net/lghuntfor/article/details/88606444" target="_blank" data-report-click="{&quot;mod&quot;:&quot;popu_382&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4136&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/lghuntfor/article/details/88606444&quot;,&quot;ab&quot;:&quot;new&quot;}" data-report-view="{&quot;mod&quot;:&quot;popu_382&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/lghuntfor/article/details/88606444&quot;,&quot;ab&quot;:&quot;new&quot;}">HTTP响应状态码详解</a>
            </li>
        </ul>
        <div class="archive-bar"></div>
        <div class="archive-box">
                <div class="archive-list-item"><a href="https://blog.csdn.net/lghuntfor/article/month/2020/11" target="_blank" data-report-click="{&quot;mod&quot;:&quot;popu_538&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4138&quot;,&quot;ab&quot;:&quot;new&quot;,&quot;dest&quot;:&quot;&quot;}"><span class="year">2020年</span><span class="num">1篇</span></a></div>
                <div class="archive-list-item"><a href="https://blog.csdn.net/lghuntfor/article/month/2019/10" target="_blank" data-report-click="{&quot;mod&quot;:&quot;popu_538&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4138&quot;,&quot;ab&quot;:&quot;new&quot;,&quot;dest&quot;:&quot;&quot;}"><span class="year">2019年</span><span class="num">4篇</span></a></div>
                <div class="archive-list-item"><a href="https://blog.csdn.net/lghuntfor/article/month/2016/04" target="_blank" data-report-click="{&quot;mod&quot;:&quot;popu_538&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4138&quot;,&quot;ab&quot;:&quot;new&quot;,&quot;dest&quot;:&quot;&quot;}"><span class="year">2016年</span><span class="num">8篇</span></a></div>
        </div>
    </div>
</div>
	<div id="footerRightAds" class="isShowFooterAds">
		<div class="aside-box">
			<div id="kp_box_57" data-pid="57"><script async="" src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/f(7).txt"></script>
<!-- PC-博客详情页-矩形-左下视窗（自适应） -->
<ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-1076724771190722" data-ad-slot="1894159733" data-ad-format="auto" data-full-width-responsive="true" data-adsbygoogle-status="done"></ins>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script><img class="pre-img-lasy" data-src="https://kunyu.csdn.net/1.png?p=57&amp;a=707&amp;c=0&amp;k=&amp;spm=1001.2101.3001.5001&amp;d=1&amp;t=3&amp;u=c80bb808ad30400c85ac9f8518292e07" style="display: block;width: 0px;height: 0px;"></div>
		</div>
	</div>
    <!-- 详情页显示目录 -->
<!--文章目录-->

</aside>
<script>
	$("a.flexible-btn").click(function(){
		$(this).parents('div.aside-box').removeClass('flexible-box');
		$(this).parents("p.text-center").remove();
	})
</script>
<script type="text/javascript" src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/user-tooltip.js.下载"></script>
<script type="text/javascript" src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/user-medal.js.下载"></script>    </div>
<div class="recommend-right  align-items-stretch clearfix" id="rightAside" data-type="recommend" style="height: auto !important;">
    <aside class="recommend-right_aside" style="height: auto !important;">
        <div id="recommend-right" style="height: auto !important;">
                        
                <div id="recommendAdBox">
                    <div id="kp_box_479" data-pid="479"><script async="" src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/f(7).txt"></script>
<!-- PC-博客详情页-右侧视窗（自适应） -->
<ins class="adsbygoogle" style="display: block; height: 600px;" data-ad-client="ca-pub-1076724771190722" data-ad-slot="3484057394" data-ad-format="auto" data-full-width-responsive="true" data-adsbygoogle-status="done" data-ad-status="filled"><ins id="aswift_0_expand" style="border: none; height: 600px; width: 300px; margin: 0px; padding: 0px; position: relative; visibility: visible; background-color: transparent; display: inline-table;" tabindex="0" title="Advertisement" aria-label="Advertisement"><ins id="aswift_0_anchor" style="border: none; height: 600px; width: 300px; margin: 0px; padding: 0px; position: relative; visibility: visible; background-color: transparent; display: block; overflow: visible;"><iframe id="aswift_0" name="aswift_0" style="left:0;position:absolute;top:0;border:0;width:300px;height:600px;" sandbox="allow-forms allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts allow-top-navigation-by-user-activation" width="300" height="600" frameborder="0" src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/ads.html" marginwidth="0" marginheight="0" vspace="0" hspace="0" allowtransparency="true" scrolling="no" allowfullscreen="true" data-google-container-id="a!1" data-google-query-id="CKPYleyg-fMCFchiiwod70cAfg" data-load-complete="true"></iframe></ins></ins></ins>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script><img class="pre-img-lasy" data-src="https://kunyu.csdn.net/1.png?p=479&amp;a=3267&amp;c=0&amp;k=&amp;spm=1001.2101.3001.4834&amp;d=1&amp;t=3&amp;u=1c4aeb99294c4c8d9fcc806d64f9a4a6" style="display: block;width: 0px;height: 0px;" src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/1.png"></div>
                </div>
            <div class="aside-box kind_person d-flex flex-column">
                    <h3 class="aside-title">分类专栏</h3>
                    <div class="align-items-stretch kindof_item" id="kind_person_column">
                        <div class="aside-content">
                            <ul>
                                <li class="">
                                    <a class="clearfix" target="_blank" href="https://blog.csdn.net/lghuntfor/category_11294050.html" data-report-click="{&quot;mod&quot;:&quot;popu_537&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4137&quot;,&quot;strategy&quot;:&quot;pc付费专栏左侧入口&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/lghuntfor/category_11294050.html&quot;,&quot;ab&quot;:&quot;new&quot;}">
                                        <img src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/20201014180756926.png" alt="" onerror="this.src=&#39;https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64&#39;">
                                        <span class="title oneline">
                                            <span class="text">Kubernetes</span>
                                        </span>
                                    </a>
                                </li>
                                <li class="">
                                    <a class="clearfix" target="_blank" href="https://blog.csdn.net/lghuntfor/category_3228187.html" data-report-click="{&quot;mod&quot;:&quot;popu_537&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4137&quot;,&quot;strategy&quot;:&quot;pc付费专栏左侧入口&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/lghuntfor/category_3228187.html&quot;,&quot;ab&quot;:&quot;new&quot;}">
                                        <img src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/20201014180756930.png" alt="" onerror="this.src=&#39;https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64&#39;">
                                        <span class="title oneline">
                                            <span class="text">架构</span>
                                        </span>
                                        <span class="count float-right">1篇</span>
                                    </a>
                                </li>
                                <li class="">
                                    <a class="clearfix" target="_blank" href="https://blog.csdn.net/lghuntfor/category_5835253.html" data-report-click="{&quot;mod&quot;:&quot;popu_537&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4137&quot;,&quot;strategy&quot;:&quot;pc付费专栏左侧入口&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/lghuntfor/category_5835253.html&quot;,&quot;ab&quot;:&quot;new&quot;}">
                                        <img src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/20201014180756916.png" alt="" onerror="this.src=&#39;https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64&#39;">
                                        <span class="title oneline">
                                            <span class="text">Linux</span>
                                        </span>
                                        <span class="count float-right">5篇</span>
                                    </a>
                                </li>
                                <li class="">
                                    <a class="clearfix" target="_blank" href="https://blog.csdn.net/lghuntfor/category_5835255.html" data-report-click="{&quot;mod&quot;:&quot;popu_537&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4137&quot;,&quot;strategy&quot;:&quot;pc付费专栏左侧入口&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/lghuntfor/category_5835255.html&quot;,&quot;ab&quot;:&quot;new&quot;}">
                                        <img src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/20201014180756780.png" alt="" onerror="this.src=&#39;https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64&#39;">
                                        <span class="title oneline">
                                            <span class="text">Java</span>
                                        </span>
                                        <span class="count float-right">6篇</span>
                                    </a>
                                </li>
                                <li class="">
                                    <a class="clearfix" target="_blank" href="https://blog.csdn.net/lghuntfor/category_6165685.html" data-report-click="{&quot;mod&quot;:&quot;popu_537&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4137&quot;,&quot;strategy&quot;:&quot;pc付费专栏左侧入口&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/lghuntfor/category_6165685.html&quot;,&quot;ab&quot;:&quot;new&quot;}">
                                        <img src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/20201014180756925.png" alt="" onerror="this.src=&#39;https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64&#39;">
                                        <span class="title oneline">
                                            <span class="text">算法与数据结构</span>
                                        </span>
                                    </a>
                                </li>
                                <li class="">
                                    <a class="clearfix" target="_blank" href="https://blog.csdn.net/lghuntfor/category_6165686.html" data-report-click="{&quot;mod&quot;:&quot;popu_537&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4137&quot;,&quot;strategy&quot;:&quot;pc付费专栏左侧入口&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/lghuntfor/category_6165686.html&quot;,&quot;ab&quot;:&quot;new&quot;}">
                                        <img src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/20201014180756918.png" alt="" onerror="this.src=&#39;https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64&#39;">
                                        <span class="title oneline">
                                            <span class="text">大数据</span>
                                        </span>
                                    </a>
                                </li>
                                <li class="">
                                    <a class="clearfix" target="_blank" href="https://blog.csdn.net/lghuntfor/category_6165810.html" data-report-click="{&quot;mod&quot;:&quot;popu_537&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4137&quot;,&quot;strategy&quot;:&quot;pc付费专栏左侧入口&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/lghuntfor/category_6165810.html&quot;,&quot;ab&quot;:&quot;new&quot;}">
                                        <img src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/20201014180756926.png" alt="" onerror="this.src=&#39;https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64&#39;">
                                        <span class="title oneline">
                                            <span class="text">数据库</span>
                                        </span>
                                        <span class="count float-right">1篇</span>
                                    </a>
                                </li>
                                <li class="">
                                    <a class="clearfix" target="_blank" href="https://blog.csdn.net/lghuntfor/category_8750844.html" data-report-click="{&quot;mod&quot;:&quot;popu_537&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4137&quot;,&quot;strategy&quot;:&quot;pc付费专栏左侧入口&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/lghuntfor/category_8750844.html&quot;,&quot;ab&quot;:&quot;new&quot;}">
                                        <img src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/20201014180756925.png" alt="" onerror="this.src=&#39;https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64&#39;">
                                        <span class="title oneline">
                                            <span class="text">Python</span>
                                        </span>
                                    </a>
                                </li>
                                <li class="">
                                    <a class="clearfix" target="_blank" href="https://blog.csdn.net/lghuntfor/category_8750845.html" data-report-click="{&quot;mod&quot;:&quot;popu_537&quot;,&quot;spm&quot;:&quot;1001.2101.3001.4137&quot;,&quot;strategy&quot;:&quot;pc付费专栏左侧入口&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/lghuntfor/category_8750845.html&quot;,&quot;ab&quot;:&quot;new&quot;}">
                                        <img src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/20201014180756925.png" alt="" onerror="this.src=&#39;https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64&#39;">
                                        <span class="title oneline">
                                            <span class="text">网络</span>
                                        </span>
                                        <span class="count float-right">1篇</span>
                                    </a>
                                </li>
                            </ul>
                        </div>
                    </div>
            </div>
        </div>
    </aside>
</div>

</div>
<div class="mask-dark"></div>
<script type="text/javascript">
    var timert = setInterval(function(){
      sideToolbar = $(".csdn-side-toolbar");
      if (sideToolbar.length > 0) {
        sideToolbar.css('cssText','bottom:64px !important;')
        clearInterval(timert);
      }
    }, 200);
</script>
<script>
    var articleId = 102529170;
    var commentscount = 0;
    var curentUrl = "https://blog.csdn.net/lghuntfor/article/details/102529170";
    var myUrl = "https://my.csdn.net/";
    var highlight = ["redis","redi","red","edi","安装与配置","dis","持久化","淘汰策略","ed","混合","配置","内存","策略","re","安装","化","持久","淘汰","与"];//高亮数组
    var isRecommendModule = true;
    var isBaiduPre = true;
    var baiduCount = 2;
    var share_card_url = "https://app-blog.csdn.net/share?article_id=102529170&username=lghuntfor"
	var articleType = 1;
    var baiduKey = "redis混合持久化配置";
    var userNewReport = false;
    var needInsertBaidu = true;
    var recommendRegularDomainArr = ["blog.csdn.net/.+/article/details/","download.csdn.net/download/","edu.csdn.net/course/detail/","ask.csdn.net/questions/","bbs.csdn.net/topics/","www.csdn.net/gather_.+/"]
    var codeStyle = "github-gist";
    var baiduSearchType = "baidulandingword";
    var canRead = true;
    var blogMoveHomeArticle = false;
    var showPcWindowAd = false;
    var showHeadWord = true;
    var showSearchText = "";
    var linkPage = true;
    var articleSource = 1;
    var articleReport = '{"pid": "blog", "spm":"1001.2101"}';
    var isShowToQuestion = false;
    var baiduSearchChannel = 'pc_relevant'
    var baiduSearchIdentification = '.no_search_link'
    var distRequestId = '1635841541913_15264'
    var initRewardObject = {
        giver: currentUserName,
        anchor: username,
        articleId: articleId,
        sign: ''
    }
    var isLikeStatus = false;
    var isUnLikeStatus = false;
</script>
<script src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/sandalstrap.min.js.下载"></script>
<div class="skin-boxshadow"></div>
<div class="directory-boxshadow"></div>
<div class="pay-code">
    <div class="pay-money">实付<span class="pay-money-span" data-nowprice="" data-oldprice="">元</span></div>
    <div class="content-blance"><a class="blance-bt" href="javascript:;">使用余额支付</a></div>
    <div class="content-code">
    <div id="payCode" data-id="">
            <div class="renovate">
                <img src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/pay-time-out.png">
                <span>点击重新获取</span>
            </div>
        </div>
        <div class="pay-style"><span><img src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/weixin.png"></span><span><img src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/zhifubao.png"></span><span><img src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/jingdong.png"></span><span class="text">扫码支付</span></div>
    </div>
    <div class="bt-close"><svg t="1567152543821" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="10924" xmlns:xlink="http://www.w3.org/1999/xlink" width="12" height="12"><defs><style type="text/css"></style></defs><path d="M512 438.378667L806.506667 143.893333a52.032 52.032 0 1 1 73.6 73.621334L585.621333 512l294.485334 294.485333a52.074667 52.074667 0 0 1-73.6 73.642667L512 585.621333 217.514667 880.128a52.053333 52.053333 0 1 1-73.621334-73.642667L438.378667 512 143.893333 217.514667a52.053333 52.053333 0 1 1 73.621334-73.621334L512 438.378667z" fill="" p-id="10925"></path></svg></div>
    <!-- <p style="margin-top: 8px;font-size: 14px;" class="text-center">支付成功即可阅读</p> -->
    <div class="pay-balance">
    <input type="radio" class="pay-code-radio" data-type="details"> 
    <span class="span">钱包余额</span>
    <span class="balance" style="color:#FC5531;font-size:14px;">0</span>  
    <div class="pay-code-tile">
        <img src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/pay-help.png" alt="">
        <div class="pay-code-content">
            <div class="span">
                <p class="title">抵扣说明：</p>
                <p> 1.余额是钱包充值的虚拟货币，按照1:1的比例进行支付金额的抵扣。<br> 2.余额无法直接购买下载，可以购买VIP、C币套餐、付费专栏及课程。</p>
            </div>
        </div>
    </div>
    </div>
    <a class="pay-balance-con" href="https://i.csdn.net/#/wallet/balance/recharge" target="_blank"><img src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/recharge.png" alt=""><span>余额充值</span></a>
</div>
<div style="display:none;">
	<img src="https://blog.csdn.net/lghuntfor/article/details/102529170" onerror="setTimeout(function(){if(!/(csdn.net|iteye.com|baiducontent.com|googleusercontent.com|360webcache.com|sogoucdn.com|bingj.com|baidu.com)$/.test(window.location.hostname)){window.location.href=&quot;\x68\x74\x74\x70\x73\x3a\x2f\x2f\x77\x77\x77\x2e\x63\x73\x64\x6e\x2e\x6e\x65\x74&quot;}},3000);">
</div>

<script src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/pc_wap_highlight-a6777dccd0.min.js.下载" type="text/javascript"></script>
<script src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/pc_wap_common-97cdfef25d.min.js.下载" type="text/javascript"></script>
<script src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/edit_copy_code-1320dfe85c.min.js.下载" type="text/javascript"></script>
<link rel="stylesheet" href="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/github-gist.css">
<script>
 // 全局声明
 if (window.csdn === undefined) {
      window.csdn = {};
    }
    window.csdn.sideToolbar = {
        options: {
            report:{
                isShow: true,
            },
            qr: {
                isShow: false,
            },
            guide: {
                isShow: true
            }
        }
    }
    $(function(){
        $(document).on('click',"a.option-box[data-type='report']",function() {
            window.csdn.userLogin.loadAjax(function(res){
                if(userNewReport){
                     window.csdn.feedback({
                        "type":'blog',
                        "rtype":'article',
                        "rid":articleId,
                        "reportedName":username,
                        "submitOptions":{
                            "title":articleTitle,
                            "contentUrl":articleDetailUrl
                        },
                        "callback":function(){
                            showToast({
                                text: "感谢您的举报，我们会尽快审核！",
                                bottom: '10%', //toast距离页面底部的距离
                                zindex: 9000, //为了防止被其他控件遮盖，z-index默认为2
                                speed: 500, //toast的显示速度
                                time: 1500//toast显示多久以后消失
                            });
                        }
                     })
                }else{
                    showReport(false,articleTitles);
                }
            })
        });
    })
</script>
    <script src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/baidu-search.js.下载" type="text/javascript"></script>
<script src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/qrcode.js.下载"></script>
<script src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/qrcode.min.js.下载"></script>
<script src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/user-ordercart.js.下载" type="text/javascript"></script>
<script src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/user-ordertip.js.下载" type="text/javascript"></script>
<script src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/order-payment.js.下载" type="text/javascript"></script>
<script src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/common-8738548423.min.js.下载" type="text/javascript"></script>
<script src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/detail-e4ad3765bf.min.js.下载" type="text/javascript"></script>
<script src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/column-9f6d8d8cba.min.js.下载" type="text/javascript"></script>
<script src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/side-toolbar.js.下载" type="text/javascript"></script>
<script src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/copyright.js.下载" type="text/javascript"></script>
<script>
    $(".MathJax").remove();
    if ($('div.markdown_views pre.prettyprint code.hljs').length > 0) {
        $('div.markdown_views')[0].className = 'markdown_views';
    }
</script>
<script type="text/javascript" src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/MathJax.js.下载"></script>
<script type="text/x-mathjax-config;executed=true">
    MathJax.Hub.Config({
            "HTML-CSS": {
                    linebreaks: { automatic: true, width: "94%container" },
                    imageFont: null
            },
            tex2jax: {
                preview: "none",
                ignoreClass:"title-article"
            },
            mml2jax: {
                preview: 'none'
            }
    });
</script>
<script type="text/javascript" crossorigin="" src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/csdn-login-box.js.下载"></script>
<div id="pointDivs"><div class="point-outer point-pre"><div class="point-inner"></div></div><div class="point-outer point-pre"><div class="point-inner"></div></div><div class="point-outer point-pre"><div class="point-inner"></div></div><div class="point-outer point-pre"><div class="point-inner"></div></div><div class="point-outer point-pre"><div class="point-inner"></div></div></div><div id="st_mask" onclick="closeMask()" style="width: 100%; height: 100%; background: rgba(0, 0, 0, 0.4); position: fixed; left: 0px; top: 0px; display: none; z-index: 1;"></div><div id="st_confirmBox" style="width: 100%; position: fixed; left: 0px; top: 34%; text-align: center; display: none; z-index: 2;"><div id="st_confirm" style="width: 80%; margin: 0px auto; background: rgb(255, 255, 255); border-radius: 3px; overflow: hidden; padding-top: 20px; text-align: center;"><span id="st_confirm_text" style="background: rgb(255, 255, 255); overflow: hidden; padding: 15px 8px 30px; text-align: center; display: block;"></span><span class="st_confirm_btn cancel" style="background: rgb(255, 255, 255); color: rgb(141, 141, 141); padding: 8px; text-align: center; display: block; width: 50%; margin: 0px auto; float: left; box-sizing: border-box; border-top: 1px solid rgb(207, 207, 207); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;"></span><span class="st_confirm_btn success" style="background: rgb(27, 121, 248); color: rgb(255, 255, 255); padding: 8px; text-align: center; display: block; width: 50%; margin: 0px auto; float: left; box-sizing: border-box; border-top: 1px solid rgb(27, 121, 248); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;"></span><div style="clear: both; display: block;"></div></div></div><div id="st_alertBox" style="width: 100%; position: fixed; left: 0px; top: 34%; text-align: center; display: none; z-index: 2;"><div id="st_alert" style="width: 80%; margin: 0px auto; background: rgb(255, 255, 255); border-radius: 2px; overflow: hidden; padding-top: 20px; text-align: center;"><span id="st_alert_text" style="background: rgb(255, 255, 255); overflow: hidden; padding: 15px 8px 30px; text-align: center; display: block;"></span><span id="st_alert_btn" onclick="closeMask()" style="background: rgb(27, 121, 248); color: rgb(255, 255, 255); padding: 8px; text-align: center; display: block; width: 72%; margin: 0px auto 20px; border-radius: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;"></span></div></div><div id="st_toastBox" style="width: 100%; position: fixed; left: 0px; bottom: 10%; text-align: center; display: none;"><span id="st_toastContent" style="color: rgb(255, 255, 255); background: rgba(0, 0, 0, 0.8); padding: 8px 24px; border-radius: 4px; max-width: 80%; display: inline-block; font-size: 16px;"></span></div> <div class="report-box">  <div class="pos-boxer">      <div class="pos-content">          <div class="box-title">              <p>举报</p>              <img class="icon btn-close" src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/closeBlack.png">          </div>          <div class="box-header">              <div class="box-top"><span>选择你想要举报的内容（必选）</span></div>              <div class="box-botoom">                  <ul>                      <li data="1" type="nei">内容涉黄</li>                      <li data="2" type="nei">政治相关</li>                      <li data="3" type="nei">内容抄袭</li>                      <li data="4" type="nei">涉嫌广告</li>                      <li data="5" type="nei">内容侵权</li>                      <li data="6" type="nei">侮辱谩骂</li>                      <li data="8" type="nei">样式问题</li>                      <li data="7" type="nei">其他</li>                  </ul>              </div>          </div>          <div>          <div class="box-content">          </div>          <div class="box-content">          </div>                    <div class="box-content" style="display:none;">                  <div class="box-content-top">                          <span>原文链接（必填）</span>                      </div>                      <div class="box-content-bottom" style="padding-bottom: 16px;">                        <div class="box-input" style="height: 32px;line-height: 32px;">                        <input class="content-input" type="text" id="originalurl" name="originalurl" placeholder="请输入被侵权原文链接">                        </div>                      </div>          </div>          <div class="box-content">          </div>          <div class="box-content" style="display:none;">                  <div class="box-content-top">                          <span>请选择具体原因（必选）</span>                      </div>                  <div class="box-content-bottom">                          <ul>                              <li sub_type="1">包含不实信息</li>                              <li sub_type="2">涉及个人隐私</li>                          </ul>                      </div>          </div>          <div class="box-content" style="display:none;">                  <div class="box-content-top">                          <span>请选择具体原因（必选）</span>                      </div>                  <div class="box-content-bottom">                          <ul>                              <li sub_type="1">侮辱谩骂</li>                              <li sub_type="2">诽谤</li>                          </ul>                  </div>          </div>          <div class="box-content" style="display:none;">                <div class="box-content-top">                        <span>请选择具体原因（必选）</span>                    </div>                <div class="box-content-bottom">                        <ul>                            <li sub_type="1">搬家样式</li>                            <li sub_type="2">博文样式</li>                        </ul>                </div>          </div>          <div class="box-content" style="display:none;">          </div>          </div>            <div id="cllcont" style="display:none;">            <div class="box-content-top">              <span class="box-content-span">补充说明（选填）</span>            </div>                <div class="box-content-bottom">                  <div class="box-input">                    <textarea class="ipt ipt-textarea" style="padding:0;" name="description" placeholder="请详细描述您的举报内容"></textarea>                  </div>                </div>            </div>            </div>      <div class="pos-footer">          <p class="btn-close">取消</p>          <p class="box-active">确定</p>      </div>  </div></div><svg aria-hidden="true" style="position: absolute; width: 0px; height: 0px; overflow: hidden;"><symbol id="sousuo" viewBox="0 0 1024 1024"><path d="M719.6779726 653.55865555l0.71080936 0.70145709 191.77828505 191.77828506c18.25658185 18.25658185 18.25658185 47.86273439 0 66.12399318-18.26593493 18.26125798-47.87208744 18.26125798-66.13334544 0l-191.77828505-191.77828506c-0.2338193-0.2338193-0.4676378-0.4676378-0.69678097-0.71081014-58.13206223 44.25257003-130.69075187 70.51978897-209.38952657 70.51978894C253.06424184 790.19776156 98.14049639 635.27869225 98.14049639 444.17380511S253.06424184 98.14049639 444.16912898 98.14049639c191.10488633 0 346.02863258 154.92374545 346.02863259 346.02863259 0 78.6987747-26.27189505 151.25746514-70.51978897 209.38952657z m-275.50884362 43.11621045c139.45428506 0 252.50573702-113.05145197 252.50573702-252.50573702s-113.05145197-252.50573702-252.50573702-252.50573783-252.50573702 113.05145197-252.50573783 252.50573783 113.05145197 252.50573702 252.50573783 252.50573702z"></path></symbol><symbol id="gonggong_csdnlogo_" viewBox="0 0 4096 1024"><path d="M1234.16069807 690.46341551c62.96962316 23.02318413 194.30703694 45.91141406 300.51598128 45.91141406 114.44114969 0 178.13952547-31.68724287 183.2407937-80.86454822 4.642424-44.8587714-42.21366937-50.93170978-171.44579784-81.53931916-178.57137886-43.77913792-292.49970264-111.55313011-281.32549604-219.86735976 12.9825927-125.75031047 181.27046257-220.78504823 439.49180199-220.78504822 125.88526465 0 247.93783044 8.87998544 311.17736197 29.60894839l-21.7006331 158.57116851c-41.05306337-14.27815288-198.1937175-34.11641822-304.48363435-34.11641822-107.7744129 0-163.56447339 33.90049151-167.42416309 71.06687432-4.85835069 47.04502922 51.14763648 49.23128703 191.14910897 86.50563321 189.58364043 48.09767188 272.47250144 115.81768239 261.6221849 220.81203906-12.71268432 123.51007099-164.13128096 228.53141851-466.48263918 228.53141851-125.85827383 0-234.33444849-22.96920244-294.09216204-45.93840492l19.730302-157.86940672zM3010.8325562 172.75216735c688.40130256-129.79893606 747.80813523 103.42888812 726.53935551 309.80082928l-40.08139323 381.78539207h-218.51781789l36.57258439-348.20879061c7.90831529-76.68096846 57.13960232-226.66905073-180.54170997-221.05495659-82.26807176 1.99732195-123.05122675 13.2794919-123.05122677 13.27949188s-7.15257186 92.65954408-15.81663059 161.13529804l-41.43093509 394.84895728h-214.3072473l42.53755943-389.15389062 28.09746151-302.43233073z m-869.48282929-18.05687008c49.12332368-5.34418577 124.58970448-10.76934404 228.45044598-10.76934405 173.38913812 0 313.57954648 30.17575597 400.38207891 93.63121421 77.94953781 59.16391512 129.82592689 154.95439631 115.4668015 293.74128117-13.25250106 129.15115596-80.405704 219.57046055-178.16651631 275.4954752-89.44763445 52.74009587-202.16137055 75.27744492-371.66382812 75.27744493-99.94707012 0-195.27870708-5.39816743-267.77609576-16.14052064L2141.37671774 154.69529727z m143.26736381 569.85754561c16.70732823 3.23890047 38.67786969 6.45081009 81.99816339 6.45081009 173.44311979 0 295.7386031-85.23706385 308.01943403-205.07638097 17.84094339-173.2271931-90.63523129-233.79463176-273.39018992-232.74198912-23.67096422 0-56.57279475 0-73.98188473 3.1849188l-42.6725136 428.15565036z" fill="#262626"></path><path d="M1109.8678928 870.30336371c-41.10704503 14.25116203-126.26313639 23.96786342-245.23874671 23.96786342-342.13585224 0-526.8071603-160.59548129-504.97157302-372.90540663C385.78470347 268.40769434 659.36382925 126.08500985 958.9081404 126.08500985c116.00661824 0 184.32042718 9.33882968 248.31570215 24.99351522l-20.5400271 170.42014604c-42.56455024-14.33213455-142.32268451-27.50366309-223.07926938-27.50366311-176.25016686 0-325.94134993 52.49717834-343.10752238 218.57179958-15.30380469 148.50358623 89.7715245 219.48948804 288.04621451 219.48948804 69.0155707 0 170.77102691-9.8786464 217.81605614-24.15679928l-16.49140154 162.40386737z" fill="#CA0C16"></path></symbol><symbol id="gonggong_csdnlogodanse_" viewBox="0 0 4096 1024"><path d="M1229.41995733 690.46341551c62.96962316 23.02318413 194.30703694 45.91141406 300.51598128 45.91141406 114.44114969 0 178.13952547-31.68724287 183.2407937-80.86454822 4.642424-44.8587714-42.21366937-50.93170978-171.44579784-81.53931916-178.57137886-43.77913792-292.49970264-111.55313011-281.32549604-219.86735976 12.9825927-125.75031047 181.27046257-220.78504823 439.49180199-220.78504822 125.88526465 0 247.93783044 8.87998544 311.17736197 29.60894839l-21.7006331 158.57116851c-41.05306337-14.27815288-198.1937175-34.11641822-304.48363435-34.11641822-107.7744129 0-163.56447339 33.90049151-167.42416309 71.06687432-4.85835069 47.04502922 51.14763648 49.23128703 191.14910897 86.50563321 189.58364043 48.09767188 272.47250144 115.81768239 261.6221849 220.81203906-12.71268432 123.51007099-164.13128096 228.53141851-466.48263918 228.53141851-125.85827383 0-234.33444849-22.96920244-294.09216204-45.93840492l19.730302-157.86940672zM3006.09181546 172.75216735c688.40130256-129.79893606 747.80813523 103.42888812 726.53935551 309.80082928l-40.08139323 381.78539207h-218.51781789l36.57258439-348.20879061c7.90831529-76.68096846 57.13960232-226.66905073-180.54170997-221.05495659-82.26807176 1.99732195-123.05122675 13.2794919-123.05122677 13.27949188s-7.15257186 92.65954408-15.81663059 161.13529804l-41.43093509 394.84895728h-214.3072473l42.53755943-389.15389062 28.09746151-302.43233073z m-869.48282929-18.05687008c49.12332368-5.34418577 124.58970448-10.76934404 228.45044598-10.76934405 173.38913812 0 313.57954648 30.17575597 400.38207891 93.63121421 77.94953781 59.16391512 129.82592689 154.95439631 115.4668015 293.74128117-13.25250106 129.15115596-80.405704 219.57046055-178.16651631 275.4954752-89.44763445 52.74009587-202.16137055 75.27744492-371.66382812 75.27744493-99.94707012 0-195.27870708-5.39816743-267.77609576-16.14052064L2136.635977 154.69529727z m143.26736381 569.85754561c16.70732823 3.23890047 38.67786969 6.45081009 81.99816339 6.45081009 173.44311979 0 295.7386031-85.23706385 308.01943403-205.07638097 17.84094339-173.2271931-90.63523129-233.79463176-273.39018992-232.74198912-23.67096422 0-56.57279475 0-73.98188473 3.1849188l-42.6725136 428.15565036z m-1174.74919792 145.75052083c-41.10704503 14.25116203-126.26313639 23.96786342-245.23874671 23.96786342-342.13585224 0-526.8071603-160.59548129-504.97157303-372.90540663C381.04396273 268.40769434 654.62308851 126.08500985 954.16739966 126.08500985c116.00661824 0 184.32042718 9.33882968 248.31570215 24.99351522l-20.5400271 170.42014604c-42.56455024-14.33213455-142.32268451-27.50366309-223.07926938-27.50366311-176.25016686 0-325.94134993 52.49717834-343.10752238 218.57179958-15.30380469 148.50358623 89.7715245 219.48948804 288.04621451 219.48948804 69.0155707 0 170.77102691-9.8786464 217.81605614-24.15679928l-16.49140154 162.40386737z"></path></symbol><symbol id="xieboke1" viewBox="0 0 1024 1024"><path d="M204.70021457 751.89799169h657.99199211a33.6932867 33.6932867 0 0 1 0 67.33536736H163.68452703a33.53966977 33.53966977 0 0 1-18.74125054-5.68382181c-18.63883902-9.4218307-18.17798882-29.44322156-15.20806401-39.17228615C199.0675982 570.27171976 309.41567149 409.58853908 435.38145354 290.12586836A243.22661203 243.22661203 0 0 1 536.97336934 234.20935065c138.10150976-33.79569759 228.3257813-29.95527721 318.60125827-28.52152054-17.15387692 20.48224105-36.20236071 41.6301547-57.29906892 62.93168529-3.1747472 3.22595323-164.67721739 19.91897936-187.97576692 47.05794871-23.29854894 27.13896932 129.60138005 7.37360691 125.19769798 11.11161576-21.6599699 18.33160576-44.90731339 36.4071831-69.94685287 53.8682939-4.50609297 3.1747472-149.52035944-0.35843931-174.61110436 27.85584737-25.19315641 28.16308124 101.89914903 18.12678338 96.0617103 21.40394206-67.43777825 37.63611797-125.96578207 64.62147036-212.70807253 93.8086635-57.65750823 19.4069231-121.8181284 133.13456658-146.5504346 179.06599187a435.75967738 435.75967738 0 0 0-23.04252112 49.10617311z" fill="#CA0C16"></path></symbol><symbol id="gitchat" viewBox="0 0 1024 1024"><path d="M892.08971773 729.08552746h-108.597062v-162.89559374H403.40293801v-108.59706198h488.68677972v271.49265572z m-651.58237345 54.298531V783.49265572h488.68678045v108.59706201H131.91028227V131.91028227h760.17943546v217.19412473h-108.597062V240.50734428H240.50734428v542.87671418z m542.98531145 0h108.597062v108.59706199h-108.597062v-108.59706199z" fill="#FF9100"></path></symbol><symbol id="toolbar-memberhead" viewBox="0 0 1303 1024"><path d="M1061.51168438 433.79527648A78.51879902 78.51879902 0 1 1 1129.35192643 472.74060007h-1.80593246l-48.05350474 403.97922198c-4.55409058 38.16013652-39.41643684 67.133573-80.79584389 67.13357302H319.35199503c-41.30088817 0-76.00619753-28.81639958-80.717325-66.97653526L189.01078861 472.74060007H187.12633728a78.51879902 78.51879902 0 1 1 67.76172401-38.86680556l193.31328323 119.81968805 158.13686148-336.06046024A78.5973179 78.5973179 0 0 1 658.23913228 80.14660493a78.51879902 78.51879902 0 0 1 51.58685077 137.721974l158.13686147 335.82490362 193.54883986-119.89820607z" fill="#FDD840"></path><path d="M1050.8331274 394.22180104a78.51879902 78.51879902 0 1 1 78.51879903 78.51879903h-1.80593246l-48.05350474 403.97922198c-4.55409058 38.16013652-39.41643684 67.133573-80.79584389 67.13357302H659.02432018C658.47468805 793.25433807 658.23913228 505.32590231 658.23913228 80.14660493a78.51879902 78.51879902 0 0 1 51.58685077 137.721974l158.13686147 335.82490362 193.54883986-119.89820607A78.51879902 78.51879902 0 0 1 1050.8331274 394.22180104z" fill="#FFBE00"></path></symbol><symbol id="toolbar-m-memberhead" viewBox="0 0 1303 1024"><path d="M1062.74839935 433.79527648A78.51879902 78.51879902 0 1 1 1130.58864141 472.74060007h-1.80593246l-48.05350474 403.97922198c-4.55409058 38.16013652-39.41643685 67.133573-80.79584389 67.13357302H320.58871c-41.30088817 0-76.00619753-28.81639958-80.71732499-66.97653526L190.24750358 472.74060007H188.36305226a78.51879902 78.51879902 0 1 1 67.761724-38.86680556l193.31328324 119.81968805 158.13686147-336.06046024A78.5973179 78.5973179 0 0 1 659.47584726 80.14660493a78.51879902 78.51879902 0 0 1 51.58685076 137.721974l158.13686148 335.82490362 193.54883985-119.89820607z" fill="#D6D6D6"></path><path d="M1052.06984238 394.22180104a78.51879902 78.51879902 0 1 1 78.51879903 78.51879903h-1.80593246l-48.05350474 403.97922198c-4.55409058 38.16013652-39.41643685 67.133573-80.79584389 67.13357302H660.26103515C659.71140302 793.25433807 659.47584726 505.32590231 659.47584726 80.14660493a78.51879902 78.51879902 0 0 1 51.58685076 137.721974l158.13686148 335.82490362 193.54883985-119.89820607A78.51879902 78.51879902 0 0 1 1052.06984238 394.22180104z" fill="#C1C1C1"></path></symbol><symbol id="csdnc-upload" viewBox="0 0 1024 1024"><path d="M216.37466416 723.16095396v84.46438188h591.25067168v-84.46438188c0-23.32483876 18.90735218-42.23219094 42.23219093-42.23219021s42.23219094 18.90735218 42.23219096 42.23219021v84.46438188c0 46.64967827-37.81470362 84.46438188-84.46438189 84.46438189H216.37466416c-46.64967827 0-84.46438188-37.81470362-84.46438189-84.4643819v-84.46438187c0-23.32483876 18.90735218-42.23219094 42.23219096-42.23219021s42.23219094 18.90735218 42.23219094 42.23219021zM469.76780906 275.55040991L246.55378774 499.53305726a42.30820888 42.30820888 0 0 1-59.99082735 0c-16.56346508-16.62259056-16.56346508-43.57095155 0-60.19354139L480.51167818 144.38144832A42.21952103 42.21952103 0 0 1 512 131.93984464a42.20262858 42.20262858 0 0 1 31.48409853 12.44160369l293.95294108 294.95806754c16.56346508 16.62259056 16.56346508 43.57095155 0 60.19354139a42.30820888 42.30820888 0 0 1-59.99082735 0L554.23219094 275.55040991V680.92876375c0 23.32483876-18.90735218 42.23219094-42.23219094 42.23219021s-42.23219094-18.90735218-42.23219094-42.23219021V275.55040991z"></path></symbol></svg><div>
  <div class="csdn-side-toolbar " style="bottom: 64px !important; left: 1776.5px;"><div class="csdn-common-logo-advert">
      <img class="logo-advert-close" src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/20210812043922.png">
      <img class="logo-advert-back" src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/20211018040038.png">
      <div class="logo-advert-bubble ">
       <img src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/20211018040042.png">
      </div>
    </div>
    
    <a class="option-box" data-type="guide">
      <img src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/guide.png" alt="" srcset="">
      <span class="show-txt">新手<br>引导</span>
    </a>
    
    
    
    
    <a class="option-box" data-type="cs">
      <img src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/kefu.png" alt="" srcset="">
      <span class="show-txt">客服</span>
    </a>
    
    
    
    <a class="option-box" data-type="report">
      <span class="show-txt" style="display:flex;opacity:100;">举报</span>
    </a>
    
    
    <a class="option-box go-top-hide" data-type="gotop">
      <img src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/fanhuidingbucopy.png" alt="" srcset="">
      <span class="show-txt">返回<br>顶部</span>
    </a>
    
  </div>
  </div><iframe src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/aframe.html" width="0" height="0" style="display: none;"></iframe></body><iframe id="google_esf" name="google_esf" src="./Redis安装与配置(混合持久化)_lghuntfor的专栏-CSDN博客_redis混合持久化配置_files/zrt_lookup.html" style="display: none;"></iframe></html>